-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 test CreateAdminUsersTest#test_visiting_the_index
#1538
Comments
publiclab/plots2#5683 seems to elucidate the problem and a potential solution |
@ivan-kocienski-gfsc It looks like they're describing a long running installation causing one test to fail because it's lazy installing something. I don't think that's the case for us. |
So I think the problem is: some system tests have code like: click_link "thing"
found = select2_find_element
assert_empty found and the The solution is to either put in some filler data (instead of looking for one item and expecting zero, put in two items and only expect one) or to move the tests out of system tests and into unit tests and only verify very very basic UI elements in system tests. (they should only be testing the very high level UX) |
Is this still a problem on our CI? |
Description
Fix the flaky test that sometimes causes CI to fail:
The text was updated successfully, but these errors were encountered: