From b372b70f58a2aaa1fa9886c8d6abdf295ab9d541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carden=CC=83a?= <35935591+luisecm@users.noreply.github.com> Date: Wed, 14 Aug 2024 17:19:51 -0600 Subject: [PATCH] update(chat): chats fixes --- playwright/PageObjects/FriendsScreen.ts | 2 ++ playwright/fixtures/setup.ts | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/playwright/PageObjects/FriendsScreen.ts b/playwright/PageObjects/FriendsScreen.ts index 7e10df85..c0215223 100644 --- a/playwright/PageObjects/FriendsScreen.ts +++ b/playwright/PageObjects/FriendsScreen.ts @@ -244,6 +244,7 @@ export class FriendsScreen extends MainPage { async validateIncomingRequestExists() { await this.textNoIncomingRequests.waitFor({ state: "detached", + timeout: 60000, }); } @@ -278,6 +279,7 @@ export class FriendsScreen extends MainPage { async validateOutgoingRequestExists() { await this.textNoOutgoingRequests.waitFor({ state: "detached", + timeout: 60000, }); } diff --git a/playwright/fixtures/setup.ts b/playwright/fixtures/setup.ts index a7ff04d2..0c45337f 100644 --- a/playwright/fixtures/setup.ts +++ b/playwright/fixtures/setup.ts @@ -115,21 +115,18 @@ export const test = base.extend({ const browser1 = await chromium.launch(); const context1 = await browser1.newContext(); await use(context1); - await context1.close(); }, context2: async ({}, use) => { const browser2 = await chromium.launch(); const context2 = await browser2.newContext(); await use(context2); - await context2.close(); }, context3: async ({}, use) => { const browser3 = await chromium.launch(); const context3 = await browser3.newContext(); await use(context3); - await context3.close(); }, createOrImport: async ({ page }, use) => { @@ -195,19 +192,16 @@ export const test = base.extend({ page1: async ({ context1 }, use) => { const page1 = await context1.newPage(); await use(page1); - await page1.close(); }, page2: async ({ context2 }, use) => { const page2 = await context2.newPage(); await use(page2); - await page2.close(); }, page3: async ({ context3 }, use) => { const page3 = await context3.newPage(); await use(page3); - await page3.close(); }, saveRecoverySeed: async ({ page }, use) => {