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 intermittent failing test #1052

Merged
merged 3 commits into from
Aug 15, 2018
Merged

Conversation

oscarwyatt
Copy link
Contributor

@oscarwyatt oscarwyatt commented Aug 15, 2018

Fixes intermittently failing test. HTML dumps show the content was being rendered but the assertion was still failing. Making capybara wait slightly longer, only in this test, while making an assertion fixes the tests (locally at least). Additionally, fixes occasional error when the rails config isn't loaded

More information on why this occurs:
https://spin.atomicobject.com/2012/04/27/intermittent-test-failures/
In the section entitled "Not waiting long enough"


Visual regression results:
https://government-frontend-pr-1052.surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-1052.herokuapp.com/component-guide

@benthorner benthorner temporarily deployed to government-frontend-pr-1052 August 15, 2018 14:08 Inactive
@oscarwyatt oscarwyatt changed the title Fix intermittent failing test [WIP] Fix intermittent failing test Aug 15, 2018
@benthorner benthorner temporarily deployed to government-frontend-pr-1052 August 15, 2018 14:50 Inactive
@oscarwyatt oscarwyatt changed the title [WIP] Fix intermittent failing test Fix intermittent failing test Aug 15, 2018
@sihugh sihugh merged commit 9ed03a2 into master Aug 15, 2018
@sihugh sihugh deleted the fix-intermittently-failing-test branch August 15, 2018 15:43
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