From 9589c9106d6a965d900a645de96d061b693122f4 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Thu, 17 Jul 2025 18:41:48 +0200 Subject: [PATCH] e2e: make sure reporting tests do not check the dropdown values when verifying table results --- e2e/reporting.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/reporting.spec.ts b/e2e/reporting.spec.ts index 3651b6ec..6b2f59c2 100644 --- a/e2e/reporting.spec.ts +++ b/e2e/reporting.spec.ts @@ -114,8 +114,8 @@ test('test that project filtering works in reporting', async ({ page }) => { await page.waitForLoadState('networkidle'); // Verify only project1 time entries are shown - await expect(page.getByText(project1)).toBeVisible(); - await expect(page.getByText(project2)).not.toBeVisible(); + await expect(page.getByTestId('reporting_view').getByText(project1)).toBeVisible(); + await expect(page.getByTestId('reporting_view').getByText(project2)).not.toBeVisible(); }); test('test that tag filtering works in reporting', async ({ page }) => { @@ -142,7 +142,7 @@ test('test that tag filtering works in reporting', async ({ page }) => { ]); // Verify only time entries with tag1 are shown - await expect(page.getByText('1h 00min').first()).toBeVisible(); + await expect(page.getByTestId('reporting_view').getByText('1h 00min').first()).toBeVisible(); }); test('test that billable status filtering works in reporting', async ({ page }) => { @@ -164,7 +164,7 @@ test('test that billable status filtering works in reporting', async ({ page }) ]); await page.waitForLoadState('networkidle'); - await expect(page.getByText('1h 00min').first()).toBeVisible(); + await expect(page.getByTestId('reporting_view').getByText('1h 00min').first()).toBeVisible(); });