Skip to content

Commit

Permalink
Add more sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Apr 3, 2024
1 parent e261d0e commit ca57113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/selenium/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def register_2fa(driver, base_url, username, password, ssh_agent):
register_device = driver.find_element("id", "register-link")
register_device.click()

sleep(0.5)
sleep(2)
logger.debug("Clicking on 'One-Time Password'")
one_time_password_add = driver.find_element("id", "one-time-password-add")
one_time_password_add.click()
Expand All @@ -87,13 +87,13 @@ def register_2fa(driver, base_url, username, password, ssh_agent):

one_time_password = driver.find_element("id", "one-time-code")
one_time_password.click()
sleep(0.5)
sleep(1)

actions = ActionChains(driver)
actions.send_keys(token)
actions.perform()

sleep(0.5)
sleep(1)

verify_button = driver.find_element("id", "dialog-verify")
verify_button.click()
Expand Down

0 comments on commit ca57113

Please sign in to comment.