Repository navigation
Repair wp/7.0 branch Actions: Fix flaky interactivity router navigate e2e test - #83647
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 7.61 MB ℹ️ View Unchanged
|
e9e1466 to
4e05801
Compare
4e05801 to
70ee637
Compare
70ee637 to
90a4319
Compare
90a4319 to
363182f
Compare
363182f to
7a74230
Compare
7a74230 to
0572abe
Compare
ntsekouras
left a comment
There was a problem hiding this comment.
LGTM, thanks! Same as trunk's #80178. The Playwright 4 failure here is the navigable toolbar tests, fixed by AY.
0572abe to
8d672a3
Compare
Part of #82782.
What?
Makes the "should update the HTML only for the latest navigation" test in
test/e2e/specs/interactivity/router-navigate.spec.tswait until the browser has requested both linked pages before letting either request through.Why?
The test holds each page request in a
page.route()handler, and the functions that let a request through (resolveLink1andresolveLink2) are only assigned once those handlers run. The test only waited for the page's own navigation counter, which can reach 2 before Playwright has run the handlers, so callingresolveLink2()could fail withTypeError: resolveLink2 is not a function. It failed this way 3 times on this stack, on all retries each time.Upstream
A straight cherry-pick of
e693c18(#80178) fromtrunk.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code