Fix race conditions in spec/system/all_casa_admins/#6722
Open
vishaltps wants to merge 1 commit intorubyforgood:mainfrom
Open
Fix race conditions in spec/system/all_casa_admins/#6722vishaltps wants to merge 1 commit intorubyforgood:mainfrom
vishaltps wants to merge 1 commit intorubyforgood:mainfrom
Conversation
…mins system specs Fixes rubyforgood#6694
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6694
Summary
expects with page-level assertions inspec/system/all_casa_admins/to fix race conditions in CICasaOrg.find_byDB query with regex path match on the pageActionMailer::Base.deliverieschecks (email delivery content is not visible on the webpage; existing page assertions already confirm success)CasaAdmin.find_byinvitation check (already confirmed by page assertion "New admin created successfully")expect { visit "/flipper" }.to raise_error(ActionController::RoutingError)to check the webpage by temporarily enabling exception renderingFiles checked
All 5 files from the issue checklist were reviewed:
all_casa_admin_spec.rbsessions/new_spec.rbedit_spec.rbpassword_change_spec.rbpatch_notes/index_spec.rbFollow-up
The "admin invitations expire" test was removed from the system spec. It should be re-added as a model/unit test in
spec/models/all_casa_admin_spec.rb(which does not currently exist).Test plan
bundle exec rspec spec/system/all_casa_admins/— all 17 examples pass, 0 failures