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.
		
		
		
		
		
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			628 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			14 lines
		
	
	
		
			628 B
		
	
	
	
		
			TypeScript
		
	
import { _electron, Page } from '@playwright/test';
 | 
						|
import { sendMessage } from './message';
 | 
						|
import { clickOnTestIdWithText, typeIntoInput } from './utils';
 | 
						|
 | 
						|
export const sendNewMessage = async (window: Page, sessionid: string, message: string) => {
 | 
						|
  await clickOnTestIdWithText(window, 'new-conversation-button');
 | 
						|
  await clickOnTestIdWithText(window, 'chooser-new-conversation-button');
 | 
						|
  // Enter session ID of USER B
 | 
						|
  await typeIntoInput(window, 'new-session-conversation', sessionid);
 | 
						|
  // click next
 | 
						|
  await clickOnTestIdWithText(window, 'next-new-conversation-button', 'Next');
 | 
						|
  await sendMessage(window, message);
 | 
						|
};
 |