-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: Fix flaky test #133
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #133 +/- ##
=======================================
Coverage 91.66% 91.66%
=======================================
Files 18 18
Lines 396 396
Branches 63 63
=======================================
Hits 363 363
Misses 29 29
Partials 4 4 ☔ View full report in Codecov by Sentry. |
1502c4d
to
535b25c
Compare
535b25c
to
eb9a4f8
Compare
const firstResult = await page.captureViewport(); | ||
await browser.refresh(); | ||
await page.waitForJsTimers(200); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradually increased this value until the build passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid fluctuations, does it make sense to go slightly over the passed value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can assume the current value is already "slightly over". To find the exact timing, I am doing additional investigation in #134
const firstResult = await page.captureViewport(); | ||
await browser.refresh(); | ||
await page.waitForJsTimers(200); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid fluctuations, does it make sense to go slightly over the passed value?
Issue #, if available:
Description of changes:
Fix this issue
Downloaded the diff screenshot from these tests, figured it is a scrollbar fading animation after page refresh
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.