Revisit the login page when attempt to retry login

When registration fails to successfully sign in, it looks like the UI
has a sign-out option, but it doesn't. So instead of trying to use
the UI, revisit the login page directly.
This commit is contained in:
Mark Lapierre 2018-10-02 15:26:22 -04:00
parent eda6b43cbe
commit 5919c8fb90
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module QA
puts "Not signed in. Attempting to sign in again."
Capybara::Screenshot.screenshot_and_save_page
Page::Menu::Main.act { sign_out }
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform do |login|
login.sign_in_using_credentials(user)