e2e: add tests for TOTP Setup, static OTP Setup and otp validation

This commit is contained in:
Jens Langhammer
2020-09-25 19:39:49 +02:00
parent f294791d41
commit 769ce1c642
5 changed files with 152 additions and 3 deletions

View File

@ -1,5 +1,6 @@
"""test OAuth Provider flow"""
from sys import platform
from time import sleep
from typing import Any, Dict, Optional
from unittest.case import skipUnless
@ -159,6 +160,8 @@ class TestProviderOAuth2Github(SeleniumTestCase):
),
).click()
sleep(1)
self.wait_for_url("http://localhost:3000/?orgId=1")
self.driver.find_element(By.XPATH, "//a[contains(@href, '/profile')]").click()
self.assertEqual(