Cypress - Test Organization and Patterns
Which of the following is the correct syntax to run a cleanup function after each test in Cypress?
afterEach hook runs after every test, and the syntax is afterEach(() => { ... }).after runs once after all tests, beforeEach runs before each test, and cleanup is not a valid hook.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions