From 35abaa7761e3c3e692f2542a824613a3036d0a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 9 Dec 2024 13:53:00 +0100 Subject: [PATCH] Try to fix flickering users create spec ./spec/features/users/create_spec.rb --- spec/features/users/create_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/features/users/create_spec.rb b/spec/features/users/create_spec.rb index b24ac2a4b4ad..a73cf2bc11f4 100644 --- a/spec/features/users/create_spec.rb +++ b/spec/features/users/create_spec.rb @@ -109,6 +109,7 @@ perform_enqueued_jobs do new_user_page.submit! + wait_for_network_idle end end @@ -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}"