-
Notifications
You must be signed in to change notification settings - Fork 7
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
Flaky test: request form: unchecking an item when there is another valid item leaves the submit button enabled #4511
Comments
Tried running git bisect on the file; however, we got 8 failing tests but none of them were the one we've seen flaking in CI. Here's what bisect gave as the failing reproduction command be rspec './spec/features/requests/form_spec.rb[1:2:2:6,1:2:2:33:6,1:3:1:1,1:4:1:3,1:4:1:6,1:5:1,1:5:5,1:5:9]' --seed 52841 |
I was not able to re-create the failure locally, even with the exact order that failed in CI. |
we haven't seen this failing test again |
Still flaky / flaky again - see recent CI run |
Possible solution to this issue is to convert the test to a JS test instead of a feature test. |
Expected behavior
Tests consistently pass in CI, unless a branch changes something that relates to the test.
Actual behavior
spec/features/requests/form_spec.rb:865
is flaky - passing and not passing inconsistently, regardless of changes made on a branch.See, e.g. CircleCI run
"request form a Princeton CAS user When visiting an Alma ID as a CAS User Request button disables and enables unchecking an item when there is another valid item leaves the submit button enabled"
Impact of this bug
Slows down velocity, causes extra CI runs, which costs time and money.
Implementation notes, if any
It's possible the sheer number of steps in this test is causing issues with the javascript testing library. It's possible adding waits would make the test behave more reliably, but that's also not a great solution.
The text was updated successfully, but these errors were encountered: