Skip to content

Commit

Permalink
Merge pull request #17409 from opf/flickering-test/user-create
Browse files Browse the repository at this point in the history
Try to fix flickering users create spec
  • Loading branch information
ulferts authored Dec 9, 2024
2 parents 8141ce3 + 35abaa7 commit 9c2bd2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/features/users/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

perform_enqueued_jobs do
new_user_page.submit!
wait_for_network_idle
end
end

Expand All @@ -120,6 +121,9 @@
it_behaves_like "successful user creation" do
describe "activation", :js do
before do
# Ensure we clear any flashes
visit "/logout"

allow(User).to receive(:current).and_call_original

visit "/account/activate?token=#{token}"
Expand Down

0 comments on commit 9c2bd2b

Please sign in to comment.