Bug: Flaky Test Unable to Find Warning Modal Before Attempting to Deactivate a Supervisor
Flaky tests are defined as tests that return both passes and failures despite no changes to the code or the test itself Fix the test so it runs consistently.
CI Workflow
rspec in docker
Sample Error Output:
2) supervisors/edit logged in as an admin can deactivate a supervisor
Failure/Error:
dismiss_confirm do
find("a[href='#{deactivate_supervisor_path(supervisor)}']").click
end
Capybara::ModalNotFound:
Unable to find modal dialog
...
# ./spec/system/supervisors/edit_spec.rb:80:in `block (3 levels) in <top (required)>'
# /usr/local/bundle/gems/webmock-3.18.1/lib/webmock/rspec.rb:37:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Selenium::WebDriver::Error::TimeoutError:
# timed out after 2 seconds (no such alert
# (Session info: headless chrome=94.0.4606.61))
# /usr/local/bundle/gems/selenium-webdriver-4.10.0/lib/selenium/webdriver/common/wait.rb:73:in `until'
Failed examples:
rspec ./spec/system/supervisors/edit_spec.rb:74 # supervisors/edit logged in as an admin can deactivate a supervisor
Questions? Join Slack!
We highly recommend that you join us in slack https://rubyforgood.herokuapp.com/ #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.
Hi! Can I work on this issue?
This issue has been inactive for 249 hours (10.38 days) and will be unassigned after 111 more hours (4.63 days). If you have questions, please
If you are still working on this, comment here to tell the bot to give you more time
This issue has been inactive for 369 hours (15.38 days) and is past the limit of 360 hours (15.00 days) so is being unassigned.You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you again for your contribution to this project.
This issue has been open without changes for a long time! What's up?
I am closing this as old. We may bring it back in a different form.