Skip to content

Commit 28bc898

Browse files
authored
chore: fix flaky test (#14670)
1 parent bc3336e commit 28bc898

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/kit/test/apps/basics/test/cross-platform/client.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,9 @@ test.describe('Routing', () => {
922922
});
923923

924924
test('responds to <form method="GET"> submission without reload', async ({ page }) => {
925-
await page.goto('/routing/form-get');
925+
// wait until load to ensure that all in-flight requests are completed before
926+
// we start watching requests
927+
await page.goto('/routing/form-get', { waitUntil: 'load' });
926928

927929
expect(await page.textContent('h1')).toBe('...');
928930
expect(await page.textContent('h2')).toBe('enter');

0 commit comments

Comments
 (0)