diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-02-01 10:48:13 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-02-01 10:50:24 +0500 |
commit | e8f8adfe27505a2a5feb665b680227ba5da07945 (patch) | |
tree | ebe54613ef092c69113b4adbcb150a7196d5525e /app/helpers/auth_helper.rb | |
parent | c12863322595e77b03a5a089ff079bf13574a57b (diff) | |
download | gitlab-ce-e8f8adfe27505a2a5feb665b680227ba5da07945.tar.gz |
Add e2e QA test for logging in using GitHub OAuth
Adds the test itself and the vendor page object model for GitHub
login pages.
Diffstat (limited to 'app/helpers/auth_helper.rb')
-rw-r--r-- | app/helpers/auth_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index 01a0fb34484..2b1d6f49878 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -16,6 +16,13 @@ module AuthHelper PROVIDERS_WITH_ICONS.include?(name.to_s) end + def qa_class_for_provider(provider) + { + saml: 'qa-saml-login-button', + github: 'qa-github-login-button' + }[provider.to_sym] + end + def auth_providers Gitlab::Auth::OAuth::Provider.providers end |