tests: fix e2e tests for redirect_uri errors
This commit is contained in:
parent
12cbe464fc
commit
d47d9103c7
|
@ -112,11 +112,6 @@ class TestProviderOAuth2OAuth(SeleniumTestCase):
|
||||||
|
|
||||||
self.driver.get("http://localhost:3000")
|
self.driver.get("http://localhost:3000")
|
||||||
self.driver.find_element(By.CLASS_NAME, "btn-service--oauth").click()
|
self.driver.find_element(By.CLASS_NAME, "btn-service--oauth").click()
|
||||||
self.driver.find_element(By.ID, "id_uid_field").click()
|
|
||||||
self.driver.find_element(By.ID, "id_uid_field").send_keys(USER().username)
|
|
||||||
self.driver.find_element(By.ID, "id_uid_field").send_keys(Keys.ENTER)
|
|
||||||
self.driver.find_element(By.ID, "id_password").send_keys(USER().username)
|
|
||||||
self.driver.find_element(By.ID, "id_password").send_keys(Keys.ENTER)
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(By.CLASS_NAME, "pf-c-title").text,
|
self.driver.find_element(By.CLASS_NAME, "pf-c-title").text,
|
||||||
|
|
|
@ -107,12 +107,6 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
|
||||||
self.container = self.setup_client()
|
self.container = self.setup_client()
|
||||||
|
|
||||||
self.driver.get("http://localhost:9009")
|
self.driver.get("http://localhost:9009")
|
||||||
|
|
||||||
self.driver.find_element(By.ID, "id_uid_field").click()
|
|
||||||
self.driver.find_element(By.ID, "id_uid_field").send_keys(USER().username)
|
|
||||||
self.driver.find_element(By.ID, "id_uid_field").send_keys(Keys.ENTER)
|
|
||||||
self.driver.find_element(By.ID, "id_password").send_keys(USER().username)
|
|
||||||
self.driver.find_element(By.ID, "id_password").send_keys(Keys.ENTER)
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.driver.find_element(By.CLASS_NAME, "pf-c-title").text,
|
self.driver.find_element(By.CLASS_NAME, "pf-c-title").text,
|
||||||
|
|
Reference in New Issue