You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			506 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			12 lines
		
	
	
		
			506 B
		
	
	
	
		
			TypeScript
		
	
import { Page } from '@playwright/test';
 | 
						|
import { sendMessage } from './message';
 | 
						|
import { clickOnMatchingText, clickOnTestIdWithText, waitForTextMessage } from './utils';
 | 
						|
 | 
						|
export const replyTo = async (window: Page, textMessage: string, replyText: string) => {
 | 
						|
  await waitForTextMessage(window, textMessage);
 | 
						|
  await clickOnTestIdWithText(window, 'control-message', textMessage, true);
 | 
						|
  await clickOnMatchingText(window, 'Reply to message');
 | 
						|
  await sendMessage(window, replyText);
 | 
						|
  console.warn();
 | 
						|
};
 |