fix: flaky e2e test with logs page

This commit is contained in:
Qiao Han committed 2025-05-09 17:50:09 +08:00
1 parent 73f38a40da
commit 0ce7f87c0e
1 file changed
+1 -1
@@ -12,7 +12,7 @@ test.describe('Logs', async () => {
test.describe(`${logPage.label} logs page`, () => {
test('can navigate to logs page', async ({ page, ref }) => {
await page.goto(`./project/${ref}`)
await page.locator('a', { hasText: 'Logs' }).click({ timeout: 10000 })
await page.locator(`[href*="/dashboard/project/${ref}/logs"]`).click()
await expect(page.getByRole('heading', { name: 'Logs & Analytics' })).toBeVisible()
// Click anywhere on the screen to close the sidebar