Uploaded September 2024 | Updated September 2026, 1 week ago
If your Cypress tests depend on each other, if a test fails, all tests after that fail. I wrote a plugin github.com/bahmutov/cypress-skip-this-test that automatically skips the tests if any of the previous tests in the same suite fails. This video shows the plugin in action. For more details, see the blog post glebbahmutov.com/blog/skip-dependent-tests-on-failure
If your Cypress tests depend on each other, if a test fails, all tests after that fail. I wrote a plugin github.com/bahmutov/cypress-skip-this-test that automatically skips the tests if any of the previous tests in the same suite fails. This video shows the plugin in action. For more details, see the blog post glebbahmutov.com/blog/skip-dependent-tests-on-failure




![Dispatch Custom HTML Events From Cypress Tests
Sometimes an element on the page subscribes to custom events. You can dispatch events using plain HTML method el.dispatchEvent or by using Cypress command cy.trigger
cy.get(#signal).then(function ($el) {
$el[0].dispatchEvent(new CustomEvent(go))
})
// using cy.trigger
cy.get(#signal).trigger(warn)
Find the full example recipe at https://glebbahmutov.com/cypress-examples/ Dispatch Custom HTML Events From Cypress Tests](https://i.ytimg.com/vi/qCqzS3LtSeI/mqdefault.jpg)





