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
		
	
	
		
			590 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			14 lines
		
	
	
		
			590 B
		
	
	
	
		
			TypeScript
		
	
import { _electron, Page } from '@playwright/test';
 | 
						|
import { clickOnMatchingText, clickOnTestIdWithText, waitForTestIdWithText } from './utils';
 | 
						|
 | 
						|
export const leaveGroup = async (window: Page) => {
 | 
						|
  // go to three dots menu
 | 
						|
  await clickOnTestIdWithText(window, 'three-dots-conversation-options');
 | 
						|
  // Select Leave Group
 | 
						|
  await clickOnMatchingText(window, 'Leave Group');
 | 
						|
  // Confirm leave group
 | 
						|
  await clickOnTestIdWithText(window, 'session-confirm-ok-button', 'OK');
 | 
						|
  // check config message
 | 
						|
  await waitForTestIdWithText(window, 'readable-message', 'You have left the group.');
 | 
						|
};
 |