diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a62201d68..6b8630d18 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -221,7 +221,7 @@ stages: displayName: Run full test suite inputs: script: | - pipenv run coverage run ./manage.py test e2e -v 3 + pipenv run coverage run ./manage.py test e2e -v 3 --failfast - task: CmdLine@2 condition: always() displayName: Cleanup diff --git a/e2e/test_provider_oauth2_github.py b/e2e/test_provider_oauth2_github.py index 196fd11bd..f2cfb6ef1 100644 --- a/e2e/test_provider_oauth2_github.py +++ b/e2e/test_provider_oauth2_github.py @@ -140,6 +140,8 @@ class TestProviderOAuth2Github(SeleniumTestCase): 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(1) + self.assertIn( app.name, self.driver.find_element( @@ -160,8 +162,6 @@ 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(