0

By default, running 'npx cypress open' opens the Cypress window and then I have to manually hit the "Run All Tests" button to run them.

  1. How can I keep the browser open and run all tests in the browser/UI automatically?
  2. Can I keep a scheduler on each test case so that the test runs in a particular time?
  3. How can I push the cypress framework to higher environments?

I need the tests to run automatically everytime. I want to keep a schedular on the test case and make it more customizable and also want to push to another environments.

basp
  • 1
  • 1

1 Answers1

1

I'm not sure why you would need to monitor all the tests in headed mode. It can take up resources. Most of your questions can be easily answered in the Cypress Docs

  1. npx cypress run --headed to run all tests in headed mode.

  2. You'll need to use a CI tool for scheduling that(ie. Github actions, CircleCi, etc).

  3. To test other environments you'll have to figure out a configuration to run on each one.

Cypress docs are your friend.

jjhelguero
  • 2,281
  • 5
  • 13