Unverified Commit bcef6d6a authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

fix ppr test flake (#58232)

Wraps this test in a `check` since the experimental log seems to occasionally come in late ([x-ref](https://github.com/vercel/next.js/actions/runs/6805954994/job/18506429726#step:27:410))
parent c47c2feb
import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils'
createNextDescribe(
'ppr',
......@@ -7,9 +8,13 @@ createNextDescribe(
skipDeployment: true,
},
({ next, isNextDev, isNextStart }) => {
it('should indicate the feature is experimental', () => {
expect(next.cliOutput).toContain('Experiments (use at your own risk)')
expect(next.cliOutput).toContain('ppr')
it('should indicate the feature is experimental', async () => {
await check(() => {
return next.cliOutput.includes('Experiments (use at your own risk)') &&
next.cliOutput.includes('ppr')
? 'success'
: 'fail'
}, 'success')
})
if (isNextStart) {
describe('build output', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment