Issue
I created in Jenkins a freestyle project in which I wanted to run Cypress.
In the command line I used this command line:
npx cypress run --browser chrome --headed --spec "cypress/integration/examples/actions.spec.js" --config pageLoadTimeout=10000
The issue that it runs silent mode, there is no browser that is open, and perform test actions.
What should I do so that the browser appears while executing the test? Thanks in advance.
Solution
CI tools like Jenkins aren't designed to open browser.
That is why Cypress offers two ways to run it:
- For local dev/debug:
cypress open
- For CI/automatisation :
cypress run
You are using it the right way.
Interesting things for CI are screenshots and videos.
Answered By - Pierre-Alain EMO