Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix flaky login and activate account system test (#27371)

Alan Guo Xiang Tan6e56a76b20ef
diff --git a/spec/system/login_spec.rb b/spec/system/login_spec.rb
index c1f90ebe148..ba485319a27 100644
--- a/spec/system/login_spec.rb
+++ b/spec/system/login_spec.rb
@@ -45,7 +45,7 @@ shared_examples "login scenarios" do
find("#activate-account-button").click
- visit "/"
+ expect(page).to have_current_path("/")
expect(page).to have_css(".header-dropdown-toggle.current-user")
end