From 9d7697d68cca8500eb54acb9680996818aaf1c5d Mon Sep 17 00:00:00 2001 From: ivan chen Date: Wed, 22 Jan 2025 14:58:09 +0800 Subject: [PATCH] test: add cleanup app in ui test --- .../tests/src/utils/playwrightOperation.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/tests/src/utils/playwrightOperation.ts b/packages/tests/src/utils/playwrightOperation.ts index c46b3f224a..d131d53cd1 100644 --- a/packages/tests/src/utils/playwrightOperation.ts +++ b/packages/tests/src/utils/playwrightOperation.ts @@ -3114,25 +3114,8 @@ export async function validateMeeting(page: Page, name: string) { console.log("meeting tab loaded successfully"); // clean up - const tabCardContainer = await cleanupInstalledApp(page, "Home"); + await cleanupInstalledApp(page, "Home"); - // send message - { - 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"),