Skip to content

Commit 345fb9e

Browse files
authored
chore: fix flaky dev toolbar render time test (#16500)
1 parent d3f9aec commit 345fb9e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/astro/e2e/dev-toolbar.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,8 @@ test.describe('Dev Toolbar', () => {
364364
const island = page.locator('astro-island');
365365
await expect(island).toHaveCount(1);
366366

367-
const serverRenderTime = await island.getAttribute('server-render-time');
368-
const clientRenderTime = await island.getAttribute('client-render-time');
369-
370-
expect(serverRenderTime).not.toBe(null);
371-
expect(clientRenderTime).not.toBe(null);
367+
await expect(island).toHaveAttribute('server-render-time', /\d/);
368+
await expect(island).toHaveAttribute('client-render-time', /\d/);
372369
});
373370

374371
test('apps can show notifications', async ({ page, astro }) => {

0 commit comments

Comments
 (0)