-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flakey tests #601
Comments
The first waits for readystate of |
Actually this could also be the issue with test case 2 and 3, since the default Event Timing threshold is 104ms and the tests are often for 100ms. So if the interaction happens before web-vitals.js has loaded and executed, then it may not have reduced to it's default of 40ms and so may miss any 100ms events as not buffered. Changing to await for |
So I see there's logic to add
Plus there's no real extra delay by wait for Saying, that. When I changed it from |
These seem to fail most often (the first one the most). Not sure if we can add any more waits or the like to make them less flakey? I've opened a PR #599 to automate the reruns in GitHub Actions.
Chrome:
LCP 1
[0-3] Error in "onLCP().stops reporting after the document changes to hidden (reportAllChanges === false)"
Error: waitUntil condition timed out after 10000ms
at async beaconCountIs (file:///Users/runner/work/web-vitals/web-vitals/test/utils/beacons.js:26:3)
at async Context. (file:///Users/runner/work/web-vitals/web-vitals/test/e2e/onLCP-test.js:283:5)
INP 1
[0-2] AssertionError in "onINP().attribution.includes LoAF entries if the browser supports it"
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(inp1.attribution.longAnimationFrameEntries.length > 0)
at Context. (file:///Users/runner/work/web-vitals/web-vitals/test/e2e/onINP-test.js:843:7)
INP 2
[chrome 134.0.6998.118 mac #0-2] 1) onINP() reports a new interaction after bfcache restore
[chrome 134.0.6998.118 mac #0-2] Expected values to be strictly equal:
actual - expected
'good'
'needs-improvement'
actual expected
The text was updated successfully, but these errors were encountered: