From aaa02e3983b2ea0d62df717a870bf9a4997e5db6 Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Sat, 25 Feb 2023 16:28:37 +0100 Subject: [PATCH] qr scanner: tests - WIP --- tests/playwright/tests/findRowByScanner.spec.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/playwright/tests/findRowByScanner.spec.ts b/tests/playwright/tests/findRowByScanner.spec.ts index ffb210146c..8ed2463b18 100644 --- a/tests/playwright/tests/findRowByScanner.spec.ts +++ b/tests/playwright/tests/findRowByScanner.spec.ts @@ -23,10 +23,15 @@ test.describe.only('Find row by scanner', () => { await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.treeView.openTable({ title: 'Country' }); await toolbar.clickFindRowByScanButton(); - await dashboard.rootPage.pause(); }); test('opens the scanner overlay', async () => { - expect(2 + 2).toBe(6); + await dashboard.rootPage.pause(); + expect(await dashboard.findRowByScanOverlay.isVisible()).toBeTruthy(); + }); + + test.describe('selecting a column', () => { + // Selecting a column + // expect that the scanner screen is visible }); }); });