ci: run e2e tests with failfast

This commit is contained in:
Jens Langhammer 2020-09-25 22:17:04 +02:00
parent bdaf0111c2
commit ea38da441b
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ stages:
displayName: Run full test suite displayName: Run full test suite
inputs: inputs:
script: | 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 - task: CmdLine@2
condition: always() condition: always()
displayName: Cleanup displayName: Cleanup

View File

@ -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(USER().username)
self.driver.find_element(By.ID, "id_password").send_keys(Keys.ENTER) self.driver.find_element(By.ID, "id_password").send_keys(Keys.ENTER)
sleep(1)
self.assertIn( self.assertIn(
app.name, app.name,
self.driver.find_element( self.driver.find_element(
@ -160,8 +162,6 @@ class TestProviderOAuth2Github(SeleniumTestCase):
), ),
).click() ).click()
sleep(1)
self.wait_for_url("http://localhost:3000/?orgId=1") self.wait_for_url("http://localhost:3000/?orgId=1")
self.driver.find_element(By.XPATH, "//a[contains(@href, '/profile')]").click() self.driver.find_element(By.XPATH, "//a[contains(@href, '/profile')]").click()
self.assertEqual( self.assertEqual(