Skip to content

Commit e66b53e

Browse files
committed
fix(ci): wait for vite overlay in d1 e2e
1 parent 96ff280 commit e66b53e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/mokup-d1-demo/test/e2e/d1-demo.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ test('d1 demo shows validation errors without bindings', async ({ page }) => {
99
.poll(async () => page.getByTestId('status-message').textContent())
1010
.toContain('User load failed')
1111

12+
// Vite may briefly reload the worker client after startup in CI, which can
13+
// leave the error overlay intercepting clicks even though the page has rendered.
14+
await expect(page.locator('vite-error-overlay')).toBeHidden({ timeout: 15_000 })
15+
1216
await page.getByTestId('auth-email-signin').click()
1317
await expect(page.getByTestId('status-message')).toContainText('Email and password are required')
1418

0 commit comments

Comments
 (0)