Reputation: 896
I am having issues with cy.visit hanging in electron only, but chrome is fine. There are no errors in the console with cypress run, so would like to run cypress open
with electron, but not sure how. cypress open --browser electron
or node_modules/cypress/bin/cypress open --browser node_modules/electron/dist/Electron.app/Contents/MacOS/Electron
doesn't work.
I have tried cypress run --headed
but cypress run doesn't allow you to stop the test mid way through and investigate what is wrong. Pausing the test closes the window.
Upvotes: 0
Views: 4137
Reputation: 1790
As stated in the docs about the open command, the browser flag is used only to specify a path to a custom browser to be added to the list of available browsers in Cypress. Electron being the default browser bundled with Cypress, you don't have to specify it when launching the UI. You can choose any browser you need on the UI before launching a test suite (see screenshoot).
Upvotes: 3