Commit 4ecc342b authored by Sanad Liaquat's avatar Sanad Liaquat

Retry on OTP failure

parent 416574a2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment