Skip to content

Commit b9363cf

Browse files
unstubbableeps1lon
authored andcommitted
Temporarily disable a test that's incompatible with experimental React
1 parent 63fc5ce commit b9363cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,20 @@ describe('dynamic-io', () => {
2525
expect(await browser.elementByCss('p').text()).toBe('result')
2626
})
2727

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

3037
if (isNextDev) {
3138
await assertNoRedbox(browser)
3239
}
3340
})
41+
/* eslint-enable jest/no-standalone-expect */
3442

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

0 commit comments

Comments
 (0)