You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This test ./spec/system/volunteers/index_spec.rb:183 runs fine locally for me but it failed an rspec check during a PR commit. Therefore, I thought I'd write up this flaky test bug report.
Error Message:
Failures:
1) view all volunteers admin user when timed out prompts login
Failure/Error: expect(page).to have_text "sign in again to continue"
Selenium::WebDriver::Error::UnexpectedAlertOpenError:
unexpected alert open: {Alert text : Your session expired. Please sign in again to continue.}
(Session info: headless chrome=114.0.5735.133)
[Screenshot Image]: /home/runner/work/casa/casa/tmp/capybara/failures_r_spec_example_groups_view_all_volunteers_admin_user_when_timed_out_prompts_login_658.png
# #0 0x5622e29604e3 <unknown>
# #1 0x5622e268fc76 <unknown>
# #2 0x5622e27037cc <unknown>
# #3 0x5622e26eade3 <unknown>
# #4 0x5622e26c02dd <unknown>
# #5 0x5622e26c134e <unknown>
# #6 0x5622e29[203](https://github.com/rubyforgood/casa/actions/runs/5424265650/jobs/9863386807?pr=4885#step:7:204)e4 <unknown>
# #7 0x5622e29243d7 <unknown>
# #8 0x5622e292eb20 <unknown>
# #9 0x5622e2925023 <unknown>
# #10 0x5622e28f31aa <unknown>
# #11 0x5622e29496b8 <unknown>
# #12 0x5622e2949847 <unknown>
# #13 0x5622e2959243 <unknown>
# #14 0x7fd961dd7b43 <unknown>
# ./spec/system/volunteers/index_spec.rb:189:in `block (4 levels) in <top (required)>'
Finished in 9 minutes 41 seconds (files took 10.99 seconds to load)
2472 examples, 1 failure, 9 pending
Failed examples:
rspec ./spec/system/volunteers/index_spec.rb:183 # view all volunteers admin user when timed out prompts login
Current Behavior
It runs fine locally (I tested it many times) but it failed during an PR rspec check.
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.
The text was updated successfully, but these errors were encountered:
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.
This test ./spec/system/volunteers/index_spec.rb:183 runs fine locally for me but it failed an rspec check during a PR commit. Therefore, I thought I'd write up this flaky test bug report.
Error Message:
Failures:
Current Behavior
It runs fine locally (I tested it many times) but it failed during an PR rspec check.
How to Replicate
ex: Probably update branch and then run locally.
Login Details:
Link to QA site
Login Emails:
/all_casa_admins/sign_in
password for all users: 12345678
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.
The text was updated successfully, but these errors were encountered: