Skip to content

Commit

Permalink
Temporarily disable a test that's incompatible with experimental React
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable authored and eps1lon committed Dec 18, 2024
1 parent f4e8919 commit 5092ac7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ describe('dynamic-io', () => {
expect(await browser.elementByCss('p').text()).toBe('result')
})

expect(next.cliOutput).not.toMatch('Error: Route "/server-action-inline"')
if (process.env.__NEXT_EXPERIMENTAL_PPR && isNextDev) {
// TODO: Remove this branch for PPR in dev mode when the issue is resolved
// where the inclusion of server timings in the RSC payload makes the
// serialized bound args not suitable to be used as a cache key.
expect(next.cliOutput).toMatch('Error: Route "/server-action-inline"')
} else {
expect(next.cliOutput).not.toMatch('Error: Route "/server-action-inline"')
}

if (isNextDev) {
await assertNoRedbox(browser)
}
})
/* eslint-enable jest/no-standalone-expect */

it('should prerender pages with inline server actions', async () => {
let $ = await next.render$('/server-action-inline', {})
Expand Down

0 comments on commit 5092ac7

Please sign in to comment.