Fix e2e tests

This commit is contained in:
Jack Kingsman
2026-07-25 21:38:58 -07:00
parent 8cb7c13a14
commit 8af7622bb0
2 changed files with 15 additions and 5 deletions
+5 -3
View File
@@ -7,8 +7,10 @@ test.describe('Node Map page', () => {
// Verify heading (also appears in sidebar, so scope to main)
await expect(page.getByRole('main').getByText('Node Map')).toBeVisible({ timeout: 10_000 });
// Verify legend elements
await expect(page.getByText('<1h')).toBeVisible();
await expect(page.getByText('<1d')).toBeVisible();
// Verify legend elements. Scoped to the legend group: the "Since" filter
// chips carry the same bucket names, so an unscoped text match is ambiguous.
const legend = page.getByRole('group', { name: 'Marker recency legend' });
await expect(legend.getByText('<1h')).toBeVisible();
await expect(legend.getByText('<1d')).toBeVisible();
});
});