From 324c6ad3f765cbb335a17a983718be9da21d9619 Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Tue, 22 Nov 2022 12:27:47 +0300 Subject: [PATCH] qrcode: playwright tests (cleanup) --- .../pages/Dashboard/Grid/Column/index.ts | 1 - .../pages/Dashboard/QrCodeOverlay/index.ts | 25 ------------------- 2 files changed, 26 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index c58ce7298a..81586e938f 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts @@ -74,7 +74,6 @@ export class ColumnPageObject extends BasePage { break; case 'QrCode': await this.get().locator('.ant-select-single').nth(1).click(); - // await this.get().locator('.ant-select-item').fill(qrCodeValueColumnTitle); await this.rootPage .locator(`.ant-select-item`, { hasText: qrCodeValueColumnTitle, diff --git a/tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts b/tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts index 70f246d721..7c34a45aec 100644 --- a/tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts +++ b/tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts @@ -21,32 +21,7 @@ export class QrCodeOverlay extends BasePage { await expect(foundQrValueLabelText).toContain(expectedValue); } - // async toggle() { - // await this.rootPage.locator('[data-testid="nc-project-menu"]').click(); - // } - async clickCloseButton() { - // const closeButton = await this.get().locator('.ant-modal-close-x').click(); await this.get().locator('.ant-modal-close-x').click(); - // const closeButton = await this.rootPage.locator('[data-testid="nc-qr-code-large"]'); } - - // async click({ menu, subMenu }: { menu: string; subMenu: string }) { - // const pMenu = await this.rootPage.locator(`.nc-dropdown-project-menu:visible`); - // await pMenu.locator(`div.nc-project-menu-item:has-text("${menu}"):visible`).click(); - // await this.rootPage.waitForTimeout(2000); - - // if (subMenu) { - // await this.rootPage.locator(`div.nc-project-menu-item:has-text("${subMenu}"):visible`).click(); - // await this.rootPage.waitForTimeout(1000); - // } - // } - - // async clickPreview(role: string) { - // await this.click({ - // menu: 'Preview as', - // subMenu: role, - // }); - // await this.rootPage.waitForTimeout(2500); - // } }