test: add failing nested scroll restoration case by aurorascharff · Pull Request #98263 · vercel/next.js · GitHub
Skip to content

test: add failing nested scroll restoration case - #98263

Open
aurorascharff wants to merge 1 commit into
canaryfrom
codex/nested-scroll-restoration-test
Open

test: add failing nested scroll restoration case#98263
aurorascharff wants to merge 1 commit into
canaryfrom
codex/nested-scroll-restoration-test

Conversation

@aurorascharff

Copy link
Copy Markdown
Contributor

Summary

Adds an it.failing regression test for a Cache Components scroll-restoration bug. A route-owned nested scroller restores on the first Back navigation, but after Forward and Back to the same retained route its scrollTop resets to 0.

The fixture lives in the existing back/forward cache suite. Once the framework behavior is fixed, the witness test can be changed from it.failing to it.

Reproduction: https://cache-components-nested-scroll-rest.vercel.app

Verification

  • HEADLESS=true pnpm test-dev-turbo test/e2e/app-dir/back-forward-cache/back-forward-cache.test.ts
  • Confirmed the test fails with expected 1000 and received 0 when temporarily run without it.failing

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

@aurorascharff
aurorascharff marked this pull request as ready for review September 4, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant