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 oscillating resize test #1373

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

pan-kot
Copy link
Member

@pan-kot pan-kot commented Jul 26, 2023

Description

Fixed tests by using the counter instead of the resize observer entry which caused issues with chromedriver

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pan-kot pan-kot requested a review from a team as a code owner July 26, 2023 11:52
@pan-kot pan-kot requested review from avinashbot and removed request for a team July 26, 2023 11:52
@@ -83,7 +79,7 @@ test(
})
);

test(
test.each([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20])(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the test 20 times to ensure it is stable. I will remove it before merging.

just-boris
just-boris previously approved these changes Jul 26, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (8d643d6) 93.46% compared to head (ab5088a) 93.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1373   +/-   ##
=======================================
  Coverage   93.46%   93.46%           
=======================================
  Files         623      623           
  Lines       16764    16764           
  Branches     5547     5547           
=======================================
  Hits        15669    15669           
  Misses       1022     1022           
  Partials       73       73           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan-kot pan-kot merged commit 67ea10c into main Jul 26, 2023
24 checks passed
@pan-kot pan-kot deleted the fix-flacky-oscillating-resize-test branch July 26, 2023 12:59
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.

4 participants