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:
Alan Guo Xiang Tan 2024-06-06 15:09:50 +08:00 committed by GitHub
parent 952f69ce60
commit 6e56a76b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ shared_examples "login scenarios" do
find("#activate-account-button").click find("#activate-account-button").click
visit "/" expect(page).to have_current_path("/")
expect(page).to have_css(".header-dropdown-toggle.current-user") expect(page).to have_css(".header-dropdown-toggle.current-user")
end end