summaryrefslogtreecommitdiff
path: root/qa/qa/vendor/github/page/login.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/vendor/github/page/login.rb')
-rw-r--r--qa/qa/vendor/github/page/login.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/qa/qa/vendor/github/page/login.rb b/qa/qa/vendor/github/page/login.rb
deleted file mode 100644
index 4675e33b514..00000000000
--- a/qa/qa/vendor/github/page/login.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-# frozen_string_literal: true
-
-require 'capybara/dsl'
-require 'benchmark'
-
-module QA
- module Vendor
- module Github
- module Page
- class Login < Page::Base
- def login
- fill_in 'login', with: QA::Runtime::Env.github_username
- fill_in 'password', with: QA::Runtime::Env.github_password
- click_on 'Sign in'
-
- Support::Retrier.retry_until(raise_on_failure: true, sleep_interval: 35) do
- fresh_otp = nil
-
- time = Benchmark.realtime do
- fresh_otp = OnePassword::CLI.instance.fresh_otp
- end
-
- QA::Runtime::Logger.info("Returned fresh_otp: #{fresh_otp} in #{time} seconds")
-
- fill_in 'otp', with: fresh_otp
-
- click_on 'Verify'
-
- !has_text?('Two-factor authentication failed', wait: 1.0)
- end
-
- click_on 'Authorize gitlab-qa' if has_button?('Authorize gitlab-qa')
- end
- end
- end
- end
- end
-end