Skip to content

Commit

Permalink
Avoid race condition in ppr navigations test (#66429)
Browse files Browse the repository at this point in the history
Co-authored-by: eps1lon <sebastian.silbermann@vercel.com>
  • Loading branch information
unstubbable and eps1lon committed Jun 5, 2024
1 parent cef8bfa commit 0301cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/app-dir/ppr-navigations/simple/simple.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { nextTestSetup } from 'e2e-utils'
import { links, locales } from './components/page'
import { locales } from './components/page'

describe('ppr-navigations simple', () => {
const { next } = nextTestSetup({
Expand All @@ -10,7 +10,7 @@ describe('ppr-navigations simple', () => {
const browser = await next.browser('/')

try {
for (const { href } of links) {
for (const href of ['/fr/about', '/fr', '/en/about', '/en', '/']) {
// Find the link element for the href and click it.
await browser.elementByCss(`a[href="${href}"]`).click()

Expand Down

0 comments on commit 0301cf0

Please sign in to comment.