Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: -66 B (0%) Total Size: 8.63 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Navigates the items list via UP/DOWN arrow keys in
|
Member
|
Also trying to fix the same issue in #86511. |
Contributor
Author
|
Nice! I'll close this PR, and review yours |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #86416.
What?
Fix the router fixture so its context-sync test receives server-rendered HTML on the destination page.
Why?
Trunk CI fails because context JSON carries only the
{ "wpServerHtml": true }marker. It is not a server HTML token, so WordPress removes the element's content during directive processing.How?
Use a derived state getter whose PHP implementation returns the trusted HTML token and whose JavaScript implementation reads the context value copied by
callbacks.syncContext. Keep all existing test assertions unchanged.Testing Instructions
npm run test:e2e -- router-html-server.spec.ts --project=chromium --repeat-each=3.<p>Two</p>for the context element.Testing Instructions for Keyboard
No interface changes. The existing tests exercise router navigation through the fixture's Next link.
Use of AI Tools
Codex authored this fixture fix and PR description and ran the verification. No human review is claimed.