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 flaky spec with sleep #5783

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jun 12, 2024

Summary

This adds a sleep statement to a spec. Alternatively, we can use #5782 .

It's cumbersome to find elements by CSS selectors to click them, and the
new admin has a few instances where we have no standalone label.
We need to wait for the JS to be loaded and connected here, otherwise
the click doesn't do anything. There is an alternative fix for this in
solidusio#5782
@mamhoff mamhoff marked this pull request as ready for review June 12, 2024 07:24
@mamhoff mamhoff requested a review from a team as a code owner June 12, 2024 07:24
mamhoff added a commit to mamhoff/solidus that referenced this pull request Jun 12, 2024
This will keep clicking the Filter button until the promotions menu
appears. The problem this fixes is that a few milliseconds after
navigation, the JS controller that switches the filter bar out might not
have loaded.

Alternative fixes here:
solidusio#5782
solidusio#5783
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Good enough for now.

@tvdeyen tvdeyen enabled auto-merge June 12, 2024 07:32
@tvdeyen tvdeyen merged commit 6684502 into solidusio:main Jun 12, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants