Skip to content

Commit 9589c91

Browse files
committed
e2e: make sure reporting tests do not check the dropdown values when verifying table results
1 parent 8a0d223 commit 9589c91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

e2e/reporting.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ test('test that project filtering works in reporting', async ({ page }) => {
114114
await page.waitForLoadState('networkidle');
115115

116116
// Verify only project1 time entries are shown
117-
await expect(page.getByText(project1)).toBeVisible();
118-
await expect(page.getByText(project2)).not.toBeVisible();
117+
await expect(page.getByTestId('reporting_view').getByText(project1)).toBeVisible();
118+
await expect(page.getByTestId('reporting_view').getByText(project2)).not.toBeVisible();
119119
});
120120

121121
test('test that tag filtering works in reporting', async ({ page }) => {
@@ -142,7 +142,7 @@ test('test that tag filtering works in reporting', async ({ page }) => {
142142
]);
143143

144144
// Verify only time entries with tag1 are shown
145-
await expect(page.getByText('1h 00min').first()).toBeVisible();
145+
await expect(page.getByTestId('reporting_view').getByText('1h 00min').first()).toBeVisible();
146146
});
147147

148148
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 })
164164
]);
165165
await page.waitForLoadState('networkidle');
166166

167-
await expect(page.getByText('1h 00min').first()).toBeVisible();
167+
await expect(page.getByTestId('reporting_view').getByText('1h 00min').first()).toBeVisible();
168168
});
169169

170170

0 commit comments

Comments
 (0)