You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// my hooks
Before({ tags: '@my-tag' }, () => {
cy.log('this is my before hook with a tag')
});
After({ tags: '@my-tag' }, () => {
cy.log('this is my after hook with a tag')
});
// here is my scenario
@my-tagScenario: my passing scenarioGiven visit google.com pass
@my-tagScenario: my failing scenarioGiven visit google.com fail
Current behavior
After
hook does not run when a scenario failsDesired behavior
After
hook should run even if the scenario fails.Test code to reproduce
My result:
Versions
Checklist
[email protected]
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: