Skip to content

Commit

Permalink
less flaky with react
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Dec 13, 2024
1 parent 5700d48 commit b88cac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/prefetch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ test('can prefetch using link props', async ({ page, browser }) => {

test('can prefetch link on focus', async ({ page, browser }) => {
await page.goto('prefetch/2')
await isPrefetchPage(page, 2)
requests.listen(page)
// If they just do a quick focus, it shouldn't make the request
const link = page.getByRole('link', { exact: true, name: 'On Hover (Default)' })
Expand Down

0 comments on commit b88cac3

Please sign in to comment.