We fix the two failing WebKit e2e tests by adding a waitForReload helper that polls performance.getEntriesByType('navigation')[0].type until it confirms the reload navigation has fully landed before calling page.goto(). On WebKit, location.reload() is deferred so the guardCount poll resolves while the reload is still pending, causing the subsequent page.goto() to race with it and throw "Navigation interrupted by another navigation." Adding await waitForReload(page) after each guardCount assertion ensures the reload completes before the test proceeds, fixing the conflict on WebKit without impacting Chromium where the reload already finishes before the poll resolves.
This code change can't be applied
Because you're coming from a fork, it is not possible to apply fixes directly to the branch, but you can apply the changes locally using the available options below.
Self-Healing CI
Classification: Code change needed
Fix generated
Verified 1 task
Commit"test(react-router): wait for reload nav before goto in webkit e2e"
The AI model provider was experiencing issues when this fix was generated.
1 file changed
+27