From ea38da441bf74132ca84db56a5fddfe2f55dcdb6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 25 Sep 2020 22:17:04 +0200 Subject: [PATCH] ci: run e2e tests with failfast --- azure-pipelines.yml | 2 +- e2e/test_provider_oauth2_github.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(