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

Fix flaky test - invalid authenticity token - failing on CircleCI but not locally #360

Closed
Janell-Huyck opened this issue Jan 30, 2024 · 0 comments · Fixed by #361
Closed
Assignees

Comments

@Janell-Huyck
Copy link
Contributor

The test: Handling of invalid authenticity token when trying to log in as an admin when the user was previously in an admin session triggers an inauthentic token error and redirects to the manage path- seems to be failing inconsistently with CircleCI. It passes locally. On CI it is failing wit the following message:

Failures:

  1. Handling of invalid authenticity token when trying to log in as an admin when the user was previously in an admin session
    triggers an inauthentic token error and redirects to the manage path
    Failure/Error: visit manage_path
 Selenium::WebDriver::Error::UnknownError:
   unknown error: cannot determine loading status
   from no such window
     (Session info: chrome=114.0.5735.90)
 # #0 0x55b8599ad4e3 <unknown>
 # #1 0x55b8596dcb00 <unknown>
 # #2 0x55b8596c67de <unknown>
 # #3 0x55b8596c4bac <unknown>
 # #4 0x55b8596c5162 <unknown>
 # #5 0x55b8596ea87b <unknown>
 # #6 0x55b8596e24a1 <unknown>
 # #7 0x55b8596e2375 <unknown>
 # #8 0x55b8596d3f6e <unknown>
 # #9 0x55b8596d4757 <unknown>
 # #10 0x55b8596c6b48 <unknown>
 # #11 0x55b8596c766c <unknown>
 # #12 0x55b8596c7066 <unknown>
 # #13 0x55b8596c6168 <unknown>
 # #14 0x55b8596c5fa0 <unknown>
 # #15 0x55b8596c49bf <unknown>
 # #16 0x55b8596c4fed <unknown>
 # #17 0x55b8596deb06 <unknown>
 # #18 0x55b8597509e5 <unknown>
 # #19 0x55b859738012 <unknown>
 # #20 0x55b85975030e <unknown>
 # #21 0x55b859737de3 <unknown>
 # #22 0x55b85970d2dd <unknown>
 # #23 0x55b85970e34e <unknown>
 # #24 0x55b85996d3e4 <unknown>
 # #25 0x55b8599713d7 <unknown>
 # #26 0x55b85997bb20 <unknown>
 # #27 0x55b859972023 <unknown>
 # #28 0x55b8599401aa <unknown>
 # #29 0x55b8599966b8 <unknown>
 # #30 0x55b859996847 <unknown>
 # #31 0x55b8599a6243 <unknown>
 # #32 0x7f21d619bb43 <unknown>
 # ./spec/features/application_access/access_invalid_authenticity_spec.rb:42:in `block (5 levels) in <top (required)>'

Fix this test so that it won't keep holding up builds: rspec ./spec/features/application_access/access_invalid_authenticity_spec.rb:40

@Janell-Huyck Janell-Huyck self-assigned this Jan 30, 2024
@hortongn hortongn added this to the Next deploy milestone Mar 13, 2024
@hortongn hortongn removed this from the Next deploy milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants