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 { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils'
createNextDescribe( createNextDescribe(
'ppr', 'ppr',
...@@ -7,9 +8,13 @@ createNextDescribe( ...@@ -7,9 +8,13 @@ createNextDescribe(
skipDeployment: true, skipDeployment: true,
}, },
({ next, isNextDev, isNextStart }) => { ({ next, isNextDev, isNextStart }) => {
it('should indicate the feature is experimental', () => { it('should indicate the feature is experimental', async () => {
expect(next.cliOutput).toContain('Experiments (use at your own risk)') await check(() => {
expect(next.cliOutput).toContain('ppr') return next.cliOutput.includes('Experiments (use at your own risk)') &&
next.cliOutput.includes('ppr')
? 'success'
: 'fail'
}, 'success')
}) })
if (isNextStart) { if (isNextStart) {
describe('build output', () => { 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