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 by waiting for modal animation #3620

Merged
merged 1 commit into from
Mar 20, 2019
Merged

Fix flaky spec by waiting for modal animation #3620

merged 1 commit into from
Mar 20, 2019

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Mar 18, 2019

What? Why?

Closes #3520

Bootstrap's fading in of the customer edit modal and the webdriver's sendKeys method returning too early lead to a race condition: teamcapybara/capybara#1890

This pull request introduces waiting for the modal. If we have the same problem in other specs, we should share the waiting method.

What should we test?

No tests.

Release notes

Part of Spree upgrade.

@mkllnk mkllnk self-assigned this Mar 18, 2019
Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

I am sorry but the spec is still falling...

Without waiting, `fill_in` can fail randomly:
teamcapybara/capybara#1890
@mkllnk
Copy link
Member Author

mkllnk commented Mar 20, 2019

Ah, yes, the 184 spec still failed because I applied the fix only to the 210 spec. Updated the commit. Let's see if that works now.

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

🙌

@luisramos0 luisramos0 merged commit 59af77e into openfoodfoundation:2-0-stable Mar 20, 2019
@mkllnk mkllnk deleted the 3520-customers-spec branch June 25, 2019 04:02
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