From 9aeecec92dcced25d9cf229857dbf4f45a440428 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Nov 2023 10:54:43 +0000 Subject: [PATCH] fix: Fixed issue with test --- tests/playwright/pages/Dashboard/common/Toolbar/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/playwright/pages/Dashboard/common/Toolbar/index.ts b/tests/playwright/pages/Dashboard/common/Toolbar/index.ts index e05766769a..6886a871b3 100644 --- a/tests/playwright/pages/Dashboard/common/Toolbar/index.ts +++ b/tests/playwright/pages/Dashboard/common/Toolbar/index.ts @@ -195,13 +195,7 @@ export class ToolbarPage extends BasePage { } async verifyDownloadDisabled() { - await this.rootPage.locator(`.nc-view-context-btn`).click(); - - await this.rootPage.waitForTimeout(500); - - await this.rootPage.locator(`.nc-view-context-download-option`).waitFor({ state: 'hidden' }); - - await this.rootPage.locator(`.nc-view-context-btn`).click(); + await this.get().locator(`.nc-toolbar-btn.nc-actions-menu-btn`).waitFor({ state: 'hidden' }); } async clickAddEditStack() {