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

[Backport] Fix flaky spec: Admin budget investment mark/unmark visible to valuators #3008

Merged
merged 2 commits into from
Nov 14, 2018

Conversation

Since one of them was slightly different, I've kept the most recent one.
As mentioned in the comments in PR #1256:

"These failures take place because the checkbox is already present
before clicking in 'under valuation', and so Capybara doesn't have to
wait for the 'under valuation' request to finish before clicking the
checkbox."

So sometimes Capybara tries to check/uncheck the checkbox at the same
time that checkbox is being replaced by the new content, resulting in no
request being sent to the server.

Making Capybara check the page to ensure the new content is already
loaded before checking/unchecking the checkbox solves the problem.
@javierm javierm force-pushed the backport-1194-fix_flaky_valuators_specs branch from 1c9dcf0 to 579ea8a Compare November 6, 2018 18:05
@javierm javierm merged commit 40224fe into master Nov 14, 2018
@javierm javierm deleted the backport-1194-fix_flaky_valuators_specs branch November 14, 2018 12:35
@javierm javierm self-assigned this Nov 11, 2021
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.

Flaky spec: Admin budget investment mark/unmark visible to valuators
2 participants