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
507 B
TypeScript
12 lines
507 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, 'readable-message', textMessage, true);
|
|
await clickOnMatchingText(window, 'Reply to message');
|
|
await sendMessage(window, replyText);
|
|
console.warn();
|
|
};
|