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

Fix sporadic failures in test of candidates menu #5809

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

Martchus
Copy link
Contributor

wait_for_ajax_and_animations does not fully cover the asynchronous behaviors of the code and also doesn't help with animations. (The relevant animation is already globally disabled via $.fx.off = true; but this does not mean code becomes synchronous.)

With this change we simply wait for the element to show up instead.

Related ticket: https://progress.opensuse.org/issues/164745

`wait_for_ajax_and_animations` does not fully cover the asynchronous
behaviors of the code and also doesn't help with animations. (The relevant
animation is already globally disabled via `$.fx.off = true;` but this does
not mean code becomes synchronous.)

With this change we simply wait for the element to show up instead.

Related ticket: https://progress.opensuse.org/issues/164745
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (f7f8498) to head (f0e94ef).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5809      +/-   ##
==========================================
- Coverage   98.49%   98.49%   -0.01%     
==========================================
  Files         394      394              
  Lines       38686    38685       -1     
==========================================
- Hits        38102    38101       -1     
  Misses        584      584              

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

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

That's not only fixing but IMHO better and can even speed up the test as it's only explicitly waiting for what is actually required :)

@mergify mergify bot merged commit 4726870 into os-autoinst:master Jul 31, 2024
42 checks passed
@Martchus Martchus deleted the fix-sporatic branch July 31, 2024 15:49
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.

3 participants