From c2bacdff826272a7057a19f9faded5864e4bcb6e Mon Sep 17 00:00:00 2001 From: pcheremu Date: Thu, 7 Dec 2023 16:29:50 +0300 Subject: [PATCH] test: refactoring --- packages/app/tests/e2e/src/pages/base.page.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/tests/e2e/src/pages/base.page.ts b/packages/app/tests/e2e/src/pages/base.page.ts index cd83edf724..fc862fbd5e 100644 --- a/packages/app/tests/e2e/src/pages/base.page.ts +++ b/packages/app/tests/e2e/src/pages/base.page.ts @@ -121,6 +121,7 @@ export class BasePage { } async getElementByClassAndText(className: string, text: string) { + await this.world.page?.waitForTimeout(config.defaultTimeout.timeout); element = await this.world.page?.locator(`//*[@class='${className}' and contains(text(), '${text}')]`); return await element; }