Skip to content
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

Merged
merged 1 commit into from
Feb 19, 2025
Merged

chore: Fix flaky test #133

merged 1 commit into from
Feb 19, 2025

Conversation

just-boris
Copy link
Member

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.

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.66%. Comparing base (02617e9) to head (eb9a4f8).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@just-boris just-boris marked this pull request as ready for review February 18, 2025 17:55
@just-boris just-boris requested a review from a team as a code owner February 18, 2025 17:55
@just-boris just-boris requested review from orangevolon and removed request for a team February 18, 2025 17:55
const firstResult = await page.captureViewport();
await browser.refresh();
await page.waitForJsTimers(200);
Copy link
Member Author

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

Copy link
Contributor

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?

Copy link
Member Author

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);
Copy link
Contributor

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?

@just-boris just-boris added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit f58bfa8 Feb 19, 2025
36 checks passed
@just-boris just-boris deleted the flaky-test branch February 19, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants