summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-10-02 15:26:22 -0400
committerMark Lapierre <mlapierre@gitlab.com>2018-10-02 15:27:04 -0400
commit5919c8fb90dd3cd17ef2b62e881718e1ce517ac9 (patch)
tree27ffdd9fdb7b2612f492dd6cd0bf7b77dbb307d4
parenteda6b43cbe50a1217a35d9d173379fd41a36534f (diff)
downloadgitlab-ce-5919c8fb90dd3cd17ef2b62e881718e1ce517ac9.tar.gz
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.
-rw-r--r--qa/qa/factory/resource/fork.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/factory/resource/fork.rb b/qa/qa/factory/resource/fork.rb
index 92050eaba2a..1fa47e92983 100644
--- a/qa/qa/factory/resource/fork.rb
+++ b/qa/qa/factory/resource/fork.rb
@@ -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)