summaryrefslogtreecommitdiff
path: root/qa/qa/page/main/login.rb
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2018-10-10 20:02:43 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2018-10-11 13:19:53 +0500
commit154ce29d05a7f5dc9058b518b889ae98a8833b78 (patch)
treecc7deeaa68b3fb6ea2f06aa3fa6357577111a7ba /qa/qa/page/main/login.rb
parentee6d9e2843d1f4ff5ad35cd1922e839f82971dbd (diff)
downloadgitlab-ce-154ce29d05a7f5dc9058b518b889ae98a8833b78.tar.gz
Initial commit
Use ACCEPT_INSECURE_CERTS env var and fix step Simplify saml signin Fix rubo cop offence Add missing # frozen_string_literal: true
Diffstat (limited to 'qa/qa/page/main/login.rb')
-rw-r--r--qa/qa/page/main/login.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/qa/page/main/login.rb b/qa/qa/page/main/login.rb
index eab7a85ff04..94b9486b0d5 100644
--- a/qa/qa/page/main/login.rb
+++ b/qa/qa/page/main/login.rb
@@ -31,6 +31,10 @@ module QA
element :register_tab
end
+ view 'app/views/devise/shared/_omniauth_box.html.haml' do
+ element :saml_login_button
+ end
+
def initialize
# The login page is usually the entry point for all the scenarios so
# we need to wait for the instance to start. That said, in some cases
@@ -130,6 +134,11 @@ module QA
click_element :sign_in_button
end
+ def sign_in_with_saml
+ set_initial_password_if_present
+ click_element :saml_login_button
+ end
+
def sign_in_using_gitlab_credentials(user)
switch_to_sign_in_tab if has_sign_in_tab?
switch_to_standard_tab if has_standard_tab?