diff --git a/test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts b/test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts index 6846bc58c5efa..690eedc2b1e34 100644 --- a/test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts +++ b/test/e2e/app-dir/dynamic-io/dynamic-io.server-action.test.ts @@ -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', {})