We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5760791 commit ca8a310Copy full SHA for ca8a310
1 file changed
src/e2e/join.spec.ts
@@ -40,6 +40,12 @@ test.describe('join', () => {
40
const cookies = await page.context().cookies();
41
expect(cookies).toHaveLength(0);
42
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
+ });
49
});
50
51
/**
0 commit comments