Closed M4xymS closed 1 year ago
@M4xymS
Are you able to provide a sample repo which demonstrates your issue?
Your problem is not reproducible using the example repo https://github.com/cypress-io/cypress-example-kitchensink
On Windows 11, using Cypress 12.16.0
, Node.js 18.16.1
, Firefox 114.0.2
.
git clone https://github.com/cypress-io/cypress-example-kitchensink
cd cypress-example-kitchensink
npm ci
npm start
Then in a separate Windows cmd
terminal window, execute:
npx cypress run --browser firefox
All 20 tests run and pass. The only problem is with capturing video, which is a known issue (see https://github.com/cypress-io/cypress/issues/18415).
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 12.16.0 │
│ Browser: Firefox 114 (headless) │
│ Node Version: v18.16.1 (C:\Program Files\nodejs\node.exe) │
│ Specs: 20 found (1-getting-started/todo.cy.js, 2-advanced-examples/actions.cy.js, 2-a │
│ dvanced-examples/aliasing.cy.js, 2-advanced-examples/assertions.cy.js, 2-advan │
│ ced-examples/connectors.cy.js, 2-advanced-examples/cookies.cy.js, 2-advanced-e │
│ xamples/cypress_api.cy....) │
│ Searched: cypress/e2e/**/*.cy.{js,jsx,ts,tsx} │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
...
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ √ 1-getting-started/todo.cy.js 00:03 6 6 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/actions.cy.js 00:16 14 14 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/aliasing.cy.js 00:02 2 2 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/assertions.cy.j 00:03 9 9 - - - │
│ s │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/connectors.cy.j 00:02 8 8 - - - │
│ s │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/cookies.cy.js 00:02 7 7 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/cypress_api.cy. 00:02 10 10 - - - │
│ js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/files.cy.js 00:01 4 4 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/location.cy.js 00:01 3 3 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/misc.cy.js 00:03 6 6 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/navigation.cy.j 00:02 3 3 - - - │
│ s │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/network_request 00:05 6 6 - - - │
│ s.cy.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/querying.cy.js 00:02 5 5 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/spies_stubs_clo 00:04 7 7 - - - │
│ cks.cy.js │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/storage.cy.js 00:02 5 5 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/traversal.cy.js 00:03 18 18 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/utilities.cy.js 00:03 5 5 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/viewport.cy.js 00:03 1 1 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/waiting.cy.js 00:06 2 2 - - - │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ √ 2-advanced-examples/window.cy.js 00:01 3 3 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
√ All specs passed! 01:14 124 124 - - -
Hi @M4xymS In order to give our engineers the best chance at recreating your problem, please create a reproducible example using a fork of Cypress Test Tiny. This gives us the best chance of seeing exactly what you are seeing and being able to investigate effectively.
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.
Current behavior
after launching a folder with three spec test files, the first one passes successfully, but the next one when launching the browser the browser does not start. The error occurs only when using cypress run and also occurs in CI.
Command that i use to start:
npx cypress run --spec ".\e2e\specs\Mobile\breeding\insertion\*" --e2e -b firefox --env machineID=7,userAgent=mobile
Desired behavior
Cypress tests all cases as they should
Test code to reproduce
run any headless tests (min. 2 specs) on firefox 104+ with cypress 12.15.0
Cypress Version
12.15.0
Node version
v18.16.0
Operating System
Windows 11 Build 22621.1848
Debug Logs
Other
Firefox Version: 114.0.2