I have a 3 spec files for testing form filling and photo uploading using cypress.
- spec file: Fill a form
- spec file: Upload a photo
- spec file: Check the results
Form is - https://demoqa.com/automation-practice-form
Problem is when fill a form test passes, browser is closed and 2 other test fail because I don't call open url in each test case.
If I run tests in GUI, everything is fine. Browser is not closed after first test, but when I run
npx cypress run --headed --browser chrome
from command line, problem occures.
I want to run tests from command line so browser doesn't close till all tests are finished.