summaryrefslogtreecommitdiff
path: root/qa/qa/page
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-02-13 23:47:00 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-02-13 23:47:00 +0800
commit58d1ad56f398dd847b75f54b1a84a86d6d10ba0a (patch)
tree4255beeae35bd1fa7f3980f2c4b80f72177f10aa /qa/qa/page
parentab4f80329c7cb60a3837737641d7d2ce238b605b (diff)
parentbf5e617a10e8df48ff78442f42f2cd6e47f59072 (diff)
downloadgitlab-ce-58d1ad56f398dd847b75f54b1a84a86d6d10ba0a.tar.gz
Merge remote-tracking branch 'upstream/master' into qa-clone-with-deploy-key
* upstream/master: (69 commits) Change issue show page to group MRs by projects and namespaces Merge branch 'master-i18n' into 'master' Update sidekiq_style_guide.md Document all_queues.yml in sidekiq_style_guide.md Fix artifact creation Fix Error 500s creating merge requests with external issue tracker Addressed mr observations Clean new Flash() and stop disabling no-new (eslint) when possible Disable query limiting warnings for now on GitLab.com Dry up spec Add changelog entry Schedule PopulateUntrackedUploads if needed Fix orphan temp table untracked_files_for_uploads Fix last batch size equals max batch size error Revert "Merge branch 'rd-40552-gitlab-should-check-if-keys-are-valid-before-saving' into 'master'" Fix warning messages for promoting labels and milestones Fixed missing js selector for the realtime pipelines commit comp Reuse getter Add loading button for better UX Honour workhorse provided file name Fix a transient failure in db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb where symlink already exists ...
Diffstat (limited to 'qa/qa/page')
-rw-r--r--qa/qa/page/main/login.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/qa/qa/page/main/login.rb b/qa/qa/page/main/login.rb
index fd49b27cb1a..a8a5601dbe6 100644
--- a/qa/qa/page/main/login.rb
+++ b/qa/qa/page/main/login.rb
@@ -39,6 +39,14 @@ module QA
end
end
+ def sign_in_using_credentials
+ if Runtime::User.ldap_user?
+ sign_in_using_ldap_credentials
+ else
+ sign_in_using_gitlab_credentials
+ end
+ end
+
def sign_in_using_ldap_credentials
using_wait_time 0 do
set_initial_password_if_present
@@ -51,7 +59,7 @@ module QA
end
end
- def sign_in_using_credentials
+ def sign_in_using_gitlab_credentials
using_wait_time 0 do
set_initial_password_if_present