How to abort the current cypress test execution during run time #30634
Unanswered
SravanthiS123
asked this question in
Questions and Help
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.
-
Hi,
Can anyone tell me how to abort the current cypress test (it block) execution after a certain few test steps by logging the results. I am aware of the command cy.state('test').skip() but it skips the current test run without logging any results of the test steps that were run so far.
Sample code:
it("Sample test case", () => {
for (let link of allLinks) {
if (link.text() === 'Dashboard') {
cy.state('test').skip();
}
}
})
Beta Was this translation helpful? Give feedback.
All reactions