All tests ok in cypress.open, but when using cypress.run if 1 test fails, all subsequent tests fail #28124
andrewwhiteart
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have testIsolation: false. cypress 13.3
I am using salesforce, i login fine in my before hook then i navigate to the page under test.
Then i have tests for each field on the page, i have left two in the example provided but there are about 30 tests.
If i run this and all 30 tests pass - all is well in both cypress run and open.
But if any test fails, cypress open handles this (only that test fails)
Where as with cypress run once a failure is encountered EVERY subsequent test fails.
It appears as though each subsequent test after a failed test no longer has access to the DOM, the error provided is this:
TypeError: Timed out retrying after 4000ms: Cannot read properties of undefined (reading 'length')
and if i change one of the subsequent tests to simply locate something on the page which is always present, it cannot find it.
I am totally stuck, any help is much appreciated
Beta Was this translation helpful? Give feedback.
All reactions