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

Bug: Flaky Test "Sign In Again To Continue" #4924

Closed
ShamiTomita opened this issue Jun 30, 2023 · 0 comments · Fixed by #5033
Closed

Bug: Flaky Test "Sign In Again To Continue" #4924

ShamiTomita opened this issue Jun 30, 2023 · 0 comments · Fixed by #5033
Labels
Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug

Comments

@ShamiTomita
Copy link
Collaborator

ShamiTomita commented Jun 30, 2023

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.

How to Replicate

ex: Probably update branch and then run locally.

Login Details:
Link to QA site

Login Emails:

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.

@ShamiTomita ShamiTomita added Type: Bug Help Wanted This is a special label that enables github to showcase issues that want help labels Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant