DEV: Fix flaky login and activate account system test (#27371)
After clicking activate, we cannot manually visit "/" and instead need to wait for the response from the server in order for the user to be signed in.
This commit is contained in:
parent
952f69ce60
commit
6e56a76b20
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue