From 63466e3384465c1e7f50348687800816c648748c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 29 Jun 2020 23:04:05 +0200 Subject: [PATCH] e2e: wait for grafana URL --- e2e/test_provider_oauth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/test_provider_oauth.py b/e2e/test_provider_oauth.py index 7f4225480..49152c263 100644 --- a/e2e/test_provider_oauth.py +++ b/e2e/test_provider_oauth.py @@ -93,6 +93,8 @@ class TestProviderOAuth(SeleniumTestCase): 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) + + self.wait_for_url("http://localhost:3000/?orgId=1") self.driver.find_element(By.XPATH, "//a[contains(@href, '/profile')]").click() self.assertEqual( self.driver.find_element(By.CLASS_NAME, "page-header__title").text, @@ -163,6 +165,7 @@ class TestProviderOAuth(SeleniumTestCase): ) self.driver.find_element(By.CSS_SELECTOR, "[type=submit]").click() + self.wait_for_url("http://localhost:3000/?orgId=1") self.driver.find_element(By.XPATH, "//a[contains(@href, '/profile')]").click() self.assertEqual( self.driver.find_element(By.CLASS_NAME, "page-header__title").text,