We added await page.waitForLoadState('networkidle') to the client-side navigation scripts test to fix the failure introduced by the router-core optimizations in this PR. The PR's faster pending-state management removed accidental async delays that previously gave the browser enough time to fetch and execute the dynamically injected script.js before the assertion ran. This aligns the test with the identical guard already used in the companion directly going to a route with scripts test.
This code change can't be applied
A fix is available, but it can't be applied automatically because the branch is outdated. Please sync the branch, then apply the fix locally below.
Self-Healing CI
Classification: Code change needed
Fix generated
Verified 1 task
Commit"test(e2e): wait for networkidle before asserting injected scripts"
1 file changed
+1