2
0
Эх сурвалжийг харах

Stop Cypress if a test failed

Some tests depend on previous tests (i.e. creating a replica / migration
depends on creating the 2 endpoints), so it is safer to stop all the
tests after the failed one.
Sergiu Miclea 8 жил өмнө
parent
commit
368673a916

+ 4 - 0
private/cypress/support/index.js

@@ -1,2 +1,6 @@
 // @flow
+
 import './commands'
+
+/* eslint func-names: off */
+afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.runner.stop() } })