diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/vendor/github/page/login.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/qa/qa/vendor/github/page/login.rb b/qa/qa/vendor/github/page/login.rb index f6e72bb01f9..232c8743de7 100644 --- a/qa/qa/vendor/github/page/login.rb +++ b/qa/qa/vendor/github/page/login.rb @@ -12,11 +12,15 @@ module QA fill_in 'password', with: QA::Runtime::Env.github_password click_on 'Sign in' - otp = OnePassword::CLI.new.otp + Support::Retrier.retry_until(exit_on_failure: true) do + otp = OnePassword::CLI.new.otp - fill_in 'otp', with: otp + fill_in 'otp', with: otp - click_on 'Verify' + 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 |