Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/main/login.rb')
-rw-r--r--qa/qa/page/main/login.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/page/main/login.rb b/qa/qa/page/main/login.rb
index c3170478733..5cba9d4bce4 100644
--- a/qa/qa/page/main/login.rb
+++ b/qa/qa/page/main/login.rb
@@ -45,6 +45,10 @@ module QA
has_element?(:sign_in_button)
end
+ def on_login_page?
+ has_element?(:login_page, wait: 0)
+ end
+
def sign_in_using_credentials(user: nil, skip_page_validation: false)
# Don't try to log-in if we're already logged-in
return if Page::Main::Menu.perform(&:signed_in?)
@@ -164,6 +168,8 @@ module QA
fill_element :password_field, user.password
click_element :sign_in_button
+ Support::WaitForRequests.wait_for_requests
+
Page::Main::Terms.perform do |terms|
terms.accept_terms if terms.visible?
end