Skip to content

test: Remove eval catch-return-null#95345

Draft
mischnic wants to merge 2 commits into
canaryfrom
mischnic/cleanup-eval
Draft

test: Remove eval catch-return-null#95345
mischnic wants to merge 2 commits into
canaryfrom
mischnic/cleanup-eval

Conversation

@mischnic

@mischnic mischnic commented Jul 1, 2026

Copy link
Copy Markdown
Member

There are a lot of these now:

destroyed next instance: 335.983ms
FAIL Turbopack test/development/acceptance/ReactRefreshRegression.test.ts (58.477 s)
  ReactRefreshRegression
    ✕ styled-components hydration mismatch (5187 ms)
    ✓ can fast refresh a page with getStaticProps (7493 ms)
    ✓ can fast refresh a page with getServerSideProps (7815 ms)
    ✓ can fast refresh a page with config (7556 ms)
    ✓ shows an overlay for a server-side error (7922 ms)
    ✓ custom loader mdx should have Fast Refresh enabled (18428 ms)

  ● ReactRefreshRegression › styled-components hydration mismatch

    page.evaluate: Execution context was destroyed, most likely because of a navigation

      609 |   ): Playwright<any> & Promise<any> {
      610 |     return this.startChain(async () =>
    > 611 |       page.evaluate(fn, ...args).finally(async () => {
          |            ^
      612 |         await page.waitForLoadState()
      613 |       })
      614 |     )

      at evaluate (lib/browsers/playwright.ts:611:12)
      at Playwright._chain (lib/browsers/playwright.ts:694:23)
      at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
      at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
      at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
      at Object.<anonymous> (development/acceptance/ReactRefreshRegression.test.ts:63:5)
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Stats cancelled

Commit: d099015
View workflow run

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Failing test suites

Commit: d099015 | About building and testing Next.js

pnpm test-dev-experimental-turbo test/e2e/middleware-redirects/test/index.test.ts (job)

  • Middleware Redirect > should redirect correctly with redirect in next.config.js (DD)
Expand output

● Middleware Redirect › should redirect correctly with redirect in next.config.js

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/middleware-redirects/test/index.test.ts:27:21)

pnpm test-dev-experimental-turbo test/e2e/gssp-redirect-base-path/gssp-redirect-base-path.test.ts (job)

  • GS(S)P Redirect with basePath > should apply temporary redirect when visited directly basePath false for GSSP page (DD)
Expand output

● GS(S)P Redirect with basePath › should apply temporary redirect when visited directly basePath false for GSSP page

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/gssp-redirect-base-path/gssp-redirect-base-path.test.ts:41:19)

pnpm test-dev-experimental-turbo test/e2e/next-image-new/default/default.test.ts (job)

  • Image Component Default Tests > should apply style inheritance for img elements but not wrapper elements (DD)
Expand output

● Image Component Default Tests › should apply style inheritance for img elements but not wrapper elements

page.evaluate: TypeError: Cannot read properties of null (reading 'scrollIntoView')

  at eval (eval at evaluate (:303:30)../, <anonymous>:1:33)
      at eval (<anonymous>)
  at UtilityScript.evaluate (../<anonymous>:303:30)
  at UtilityScript.<anonymous> (../<anonymous>:1:44)
  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/next-image-new/default/default.test.ts:1367:19)

pnpm test-dev-experimental-turbo test/development/app-dir/hmr-deleted-page/hmr-deleted-page.test.ts (job)

  • hmr-deleted-page > should not show errors for a deleted page (DD)
Expand output

● hmr-deleted-page › should not show errors for a deleted page

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at eval (lib/development-sandbox.ts:19:17)
  at Object.<anonymous> (development/app-dir/hmr-deleted-page/hmr-deleted-page.test.ts:25:27)

pnpm test-dev-experimental-turbo test/e2e/app-dir/use-cache-unknown-cache-kind/use-cache-unknown-cache-kind.test.ts (job)

  • use-cache-unknown-cache-kind > should recover from the build error if the cache handler is defined (DD)
Expand output

● use-cache-unknown-cache-kind › should recover from the build error if the cache handler is defined

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (e2e/app-dir/use-cache-unknown-cache-kind/use-cache-unknown-cache-kind.test.ts:175:7)

pnpm test-dev-experimental-turbo test/e2e/middleware-redirects/test/node-runtime.test.ts (job)

  • Middleware Redirect > should redirect correctly with redirect in next.config.js (DD)
Expand output

● Middleware Redirect › should redirect correctly with redirect in next.config.js

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/middleware-redirects/test/index.test.ts:27:21)

pnpm test-start-experimental-turbo test/e2e/middleware-redirects/test/index.test.ts (job)

  • Middleware Redirect > should redirect correctly with redirect in next.config.js (DD)
Expand output

● Middleware Redirect › should redirect correctly with redirect in next.config.js

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/middleware-redirects/test/index.test.ts:27:21)

pnpm test-start-experimental-turbo test/e2e/middleware-redirects/test/node-runtime.test.ts (job)

  • Middleware Redirect > should redirect correctly with redirect in next.config.js (DD)
Expand output

● Middleware Redirect › should redirect correctly with redirect in next.config.js

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/middleware-redirects/test/index.test.ts:27:21)

pnpm test-start-experimental-turbo test/e2e/gssp-redirect-base-path/gssp-redirect-base-path.test.ts (job)

  • GS(S)P Redirect with basePath > should apply temporary redirect when visited directly basePath false for GSSP page (DD)
Expand output

● GS(S)P Redirect with basePath › should apply temporary redirect when visited directly basePath false for GSSP page

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/gssp-redirect-base-path/gssp-redirect-base-path.test.ts:41:19)

pnpm test-dev test/development/acceptance/ReactRefresh.test.ts (job)

  • ReactRefresh > can edit a component without losing state (DD)
  • ReactRefresh > cyclic dependencies (DD)
Expand output

● ReactRefresh › can edit a component without losing state

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefresh.test.ts:17:5)

● ReactRefresh › cyclic dependencies

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefresh.test.ts:153:5)

pnpm test-dev test/development/acceptance/ReactRefreshLogBox.test.ts (job)

  • ReactRefreshLogBox > should strip whitespace correctly with newline (DD)
  • ReactRefreshLogBox > module init error not shown (DD)
  • ReactRefreshLogBox > boundaries (DD)
  • ReactRefreshLogBox > unterminated JSX (DD)
  • ReactRefreshLogBox > conversion to class component (1) (DD)
  • ReactRefreshLogBox > css syntax errors (DD)
  • ReactRefreshLogBox > logbox: anchors links in error messages (DD)
  • ReactRefreshLogBox > non-Error errors are handled properly (DD)
Expand output

● ReactRefreshLogBox › should strip whitespace correctly with newline

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:23:5)

● ReactRefreshLogBox › module init error not shown

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:82:5)

● ReactRefreshLogBox › boundaries

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:244:5)

● ReactRefreshLogBox › unterminated JSX

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:417:5)

● ReactRefreshLogBox › conversion to class component (1)

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:536:5)

● ReactRefreshLogBox › css syntax errors

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:693:5)

● ReactRefreshLogBox › logbox: anchors links in error messages

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:827:5)

● ReactRefreshLogBox › non-Error errors are handled properly

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox.test.ts:1087:5)

pnpm test-dev test/e2e/app-dir/metadata-navigation/metadata-navigation.test.ts (job)

  • app dir - metadata navigation > navigation > should support redirect in generateMetadata (DD)
Expand output

● app dir - metadata navigation › navigation › should support redirect in generateMetadata

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at eval (lib/next-webdriver.ts:196:21)
  at checkHydrated (lib/next-webdriver.ts:227:13)
  at Object.<anonymous> (e2e/app-dir/metadata-navigation/metadata-navigation.test.ts:82:23)

pnpm test-dev test/development/acceptance/ReactRefreshLogBox-app-doc.test.ts (job)

  • ReactRefreshLogBox _app _document > empty _document shows logbox (DD)
  • ReactRefreshLogBox _app _document > _document syntax error shows logbox (DD)
Expand output

● ReactRefreshLogBox _app _document › empty _document shows logbox

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:61:5)

● ReactRefreshLogBox _app _document › _document syntax error shows logbox

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:288:5)

pnpm test-dev test/development/acceptance/ReactRefreshRequire.test.ts (job)

  • ReactRefreshRequire > re-runs accepted modules (DD)
  • ReactRefreshRequire > propagates a hot update to closest accepted module (DD)
  • ReactRefreshRequire > propagates hot update to all inverse dependencies (DD)
  • ReactRefreshRequire > propagates a module that stops accepting in next version (DD)
Expand output

● ReactRefreshRequire › re-runs accepted modules

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshRequire.test.ts:17:5)

● ReactRefreshRequire › propagates a hot update to closest accepted module

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshRequire.test.ts:73:5)

● ReactRefreshRequire › propagates hot update to all inverse dependencies

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshRequire.test.ts:176:5)

● ReactRefreshRequire › propagates a module that stops accepting in next version

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/ReactRefreshRequire.test.ts:383:5)

pnpm test-dev test/e2e/app-dir/use-cache-unknown-cache-kind/use-cache-unknown-cache-kind.test.ts (job)

  • use-cache-unknown-cache-kind > should recover from the build error if the cache handler is defined (DD)
Expand output

● use-cache-unknown-cache-kind › should recover from the build error if the cache handler is defined

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (e2e/app-dir/use-cache-unknown-cache-kind/use-cache-unknown-cache-kind.test.ts:175:7)

pnpm test-dev test/development/acceptance/error-recovery.test.ts (job)

  • pages/ error recovery > logbox: can recover from a syntax error without losing state (DD)
  • pages/ error recovery > logbox: can recover from a event handler error (DD)
  • pages/ error recovery > logbox: can recover from a component error (DD)
  • pages/ error recovery > render error not shown right after syntax error (DD)
  • pages/ error recovery > stuck error (DD)
  • pages/ error recovery > syntax > runtime error (DD)
Expand output

● pages/ error recovery › logbox: can recover from a syntax error without losing state

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:18:5)

● pages/ error recovery › logbox: can recover from a event handler error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:128:5)

● pages/ error recovery › logbox: can recover from a component error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:214:5)

● pages/ error recovery › render error not shown right after syntax error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:367:5)

● pages/ error recovery › stuck error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:626:5)

● pages/ error recovery › syntax > runtime error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance/error-recovery.test.ts:745:5)

pnpm test-dev test/e2e/next-image-new/app-dir/app-dir.test.ts (job)

  • Image Component App Dir Tests > should apply style inheritance for img elements but not wrapper elements (DD)
Expand output

● Image Component App Dir Tests › should apply style inheritance for img elements but not wrapper elements

page.evaluate: TypeError: Cannot read properties of null (reading 'scrollIntoView')

  at eval (eval at evaluate (:303:30)../, <anonymous>:1:33)
      at eval (<anonymous>)
  at UtilityScript.evaluate (../<anonymous>:303:30)
  at UtilityScript.<anonymous> (../<anonymous>:1:44)
  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/next-image-new/app-dir/app-dir.test.ts:1361:19)

pnpm test-dev test/development/acceptance-app/ReactRefreshRegression.test.ts (job)

  • ReactRefreshRegression app > can fast refresh a page with static generation (DD)
  • ReactRefreshRegression app > shows an overlay for server-side error in client component (DD)
Expand output

● ReactRefreshRegression app › can fast refresh a page with static generation

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance-app/ReactRefreshRegression.test.ts:87:5)

● ReactRefreshRegression app › shows an overlay for server-side error in client component

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance-app/ReactRefreshRegression.test.ts:313:5)

pnpm test-dev test/e2e/app-dir/css-chunking/css-chunking.test.ts (job)

Expand output

● Test suite failed to run

FetchError: request to http://localhost:46499/_next/static/css/app/page.css?v=1782888339893 failed, reason: read ECONNRESET

  at ClientRequest.<anonymous> (../node_modules/.pnpm/node-fetch@2.6.7_encoding@0.1.13/node_modules/node-fetch/lib/index.js:1491:11)

● Test suite failed to run

FetchError: request to http://localhost:46499/_next/static/css/app/layout.css?v=1782888339893 failed, reason: read ECONNRESET

  at ClientRequest.<anonymous> (../node_modules/.pnpm/node-fetch@2.6.7_encoding@0.1.13/node_modules/node-fetch/lib/index.js:1491:11)

pnpm test-dev test/e2e/middleware-redirects/test/node-runtime.test.ts (job)

  • Middleware Redirect > should redirect correctly with redirect in next.config.js (DD)
Expand output

● Middleware Redirect › should redirect correctly with redirect in next.config.js

page.evaluate: Execution context was destroyed, most likely because of a navigation.

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval (e2e/middleware-redirects/test/index.test.ts:27:21)

pnpm test-dev test/development/acceptance-app/error-recovery.test.ts (job)

  • Error recovery app > server component can recover from a component error (DD)
  • Error recovery app > client component can recover from a component error (DD)
  • Error recovery app > stuck error (DD)
Expand output

● Error recovery app › server component can recover from a component error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance-app/error-recovery.test.ts:460:32)

● Error recovery app › client component can recover from a component error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance-app/error-recovery.test.ts:508:5)

● Error recovery app › stuck error

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at Object.eval [as patch] (lib/development-sandbox.ts:99:42)
  at Object.<anonymous> (development/acceptance-app/error-recovery.test.ts:805:5)

pnpm test-dev test/e2e/app-dir/navigation/navigation.test.ts (job)

  • app dir - navigation > query string > should set query with semicolon correctly (DD)
  • app dir - navigation > redirect > components > should redirect in a server component (DD)
  • app dir - navigation > redirect > components > should redirect in a client component (DD)
  • app dir - navigation > redirect > components > should redirect to external url (DD)
Expand output

● app dir - navigation › query string › should set query with semicolon correctly

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at eval (lib/next-webdriver.ts:196:21)
  at checkHydrated (lib/next-webdriver.ts:227:13)
  at Object.<anonymous> (e2e/app-dir/navigation/navigation.test.ts:27:23)

● app dir - navigation › redirect › components › should redirect in a server component

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:675:17)
  at Playwright.startChain [as eval] (lib/browsers/playwright.ts:610:17)
  at eval (lib/next-webdriver.ts:196:21)
  at checkHydrated (lib/next-webdriver.ts:227:13)
  at Object.<anonymous> (e2e/app-dir/navigation/navigation.test.ts:417:25)

● app dir - navigation › redirect › components › should redirect in a client component

page.evaluate: Execution context was destroyed, most likely because of a navigation

  609 |   ): Playwright<any> & Promise<any> {
  610 |     return this.startChain(async () =>
> 611 |       page.evaluate(fn, ...args).finally(async () => {
      |            ^
  612 |         await page.waitForLoadState()
  613 |       })
  614 |     )

  at evaluate (lib/browsers/playwright.ts:611:12)
  at Playwright._chain (lib/browsers/playwright.ts:694:23)
  at Playwright.

... truncated to fit in one GitHub comment ...

@mischnic mischnic changed the title [test] Remove eval catch-return-null Jul 1, 2026
@mischnic mischnic force-pushed the mischnic/cleanup-eval branch from d099015 to 041c4d8 Compare July 1, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant