I have four test cases that require using the same credentials for logging in. When grouping these test cases, I aim to perform the login process only once, and ensure Cypress does not close the browser afterward.
“groupingspec”: “cypress run –spec cypress/integration/specs/OneSpec.js cypress/integration/specs/TwoSpec.js cypress/integration/specs/ThreeSpec.js cypress/integration/specs/FourSpec.js –browser chrome –headed”,
npm run groupingspec
New contributor
Jigar Tanna is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.