test: Hack around an intermitted -t=auto failure.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 17m49s

This commit is contained in:
Cory McWilliams 2024-11-09 15:09:08 -05:00
parent f1dda43e66
commit 0b46efe4ea

View File

@ -198,7 +198,12 @@ try:
wait.until(expected_conditions.presence_of_element_located((By.ID, 'content')))
driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'identity').click()
while True:
try:
driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'identity').click()
break
except:
pass
driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'logout').click()
driver.find_element(By.TAG_NAME, 'tf-auth').shadow_root.find_element(By.ID, 'guest_label').click()
driver.find_element(By.TAG_NAME, 'tf-auth').shadow_root.find_element(By.ID, 'guestButton').click()