Wait a bit before clicking the backup code form link

pull/6827/head
Oliver Günther 7 years ago
parent c8a0ea85cf
commit a171c498b4
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      spec/features/backup_codes/login_with_backup_code_spec.rb

@ -32,6 +32,10 @@ describe 'Login with 2FA backup code', with_2fa_ee: true, type: :feature,
first_login_step
expect(page).to have_selector('#toggle_resend_form', wait: 10)
# Wait a bit before clicking the form
sleep 5
# Open other options
find('#toggle_resend_form').click
find('a', text: I18n.t('two_factor_authentication.login.enter_backup_code_title'), wait: 10).click

Loading…
Cancel
Save