Skip to content

Commit

Permalink
chore: fix another flaky test (#12493)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jul 24, 2024
1 parent d4e1407 commit 348cd36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kit/test/apps/basics/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,13 @@ test.describe('Load', () => {
});

test('Prerendered +server.js called from a non-prerendered handle hook works', async ({
clicknav,
page,
javaScriptEnabled
}) => {
if (javaScriptEnabled) {
await page.goto('/prerendering/prerendered-endpoint');
await page.click('a');
await clicknav('a[href="/prerendering/prerendered-endpoint/from-handle-hook"]');
} else {
await page.goto('/prerendering/prerendered-endpoint/from-handle-hook');
}
Expand Down

0 comments on commit 348cd36

Please sign in to comment.