Skip to content

Commit ca8a310

Browse files
committed
attempt to assuage flake
1 parent 5760791 commit ca8a310

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/e2e/join.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ test.describe('join', () => {
4040
const cookies = await page.context().cookies();
4141
expect(cookies).toHaveLength(0);
4242
await expect(page.locator('h1')).toHaveText('Join');
43+
44+
// Wait for React hydration so form event handlers are attached
45+
await page.waitForFunction(() => {
46+
const form = document.querySelector('form');
47+
return form && Object.keys(form).some((k) => k.startsWith('__react'));
48+
});
4349
});
4450

4551
/**

0 commit comments

Comments
 (0)