Skip to content

Commit

Permalink
test: add cleanup app in ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan chen committed Jan 22, 2025
1 parent 538179e commit 705dce4
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions packages/tests/src/utils/playwrightOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3117,16 +3117,22 @@ export async function validateMeeting(page: Page, name: string) {
const tabCardContainer = await cleanupInstalledApp(page, "Home");

// send message
const chatTab = await tabCardContainer?.waitForSelector("button:has-text('Chat')");
await chatTab?.click();
await page.waitForTimeout(Timeout.shortTimeWait);
console.log("sending message: helloWorld");
const textbox = await frame?.waitForSelector(
'div.ck-content[role="textbox"]'
);
await textbox?.fill("helloWorld");
const sendButton = await frame?.waitForSelector('button[name="send"]');
await sendButton?.click();
{
const frameElementHandle = await page.waitForSelector(
`iframe[name="embedded-page-container"]`
);
const frame = await frameElementHandle?.contentFrame();
const chatTab = await tabCardContainer?.waitForSelector("button:has-text('Chat')");
await chatTab?.click();
await page.waitForTimeout(Timeout.shortTimeWait);
console.log("sending message: helloWorld");
const textbox = await frame?.waitForSelector(
'div.ck-content[role="textbox"]'
);
await textbox?.fill("helloWorld");
const sendButton = await frame?.waitForSelector('button[name="send"]');
await sendButton?.click();
}
} catch (error) {
await page.screenshot({
path: getPlaywrightScreenshotPath("error"),
Expand Down

0 comments on commit 705dce4

Please sign in to comment.