Can't use --headless on CLI.
Closed this issue · 1 comments
samixchoumi commented
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.
Environment information
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1 Pro
Memory: 367.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.12.1 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.4 - /usr/local/bin/npm
Browsers:
Chrome: 114.0.5735.106
Firefox: 113.0.2
Safari: 16.5
npmPackages:
@badeball/cypress-cucumber-preprocessor: ^17.2.0 => 17.2.0
@bahmutov/cypress-esbuild-preprocessor: ^2.2.0 => 2.2.0
@cypress/angular: 0.0.0-development
@cypress/mount-utils: 0.0.0-development
@cypress/react: 0.0.0-development
@cypress/react18: 0.0.0-development
@cypress/svelte: 0.0.0-development
@cypress/vue: 0.0.0-development
@cypress/vue2: 0.0.0-development
@shelex/cypress-allure-plugin: ^2.39.1 => 2.39.1
@typescript-eslint/eslint-plugin: ^5.59.7 => 5.59.8
@typescript-eslint/parser: ^5.59.7 => 5.59.8
allure-js-commons: ^2.3.0 => 2.4.0
cy2: ^4.0.6 => 4.0.6 (3.4.3)
cypress: ^12.13.0 => 12.13.0
cypress-cloud: ^1.7.4 => 1.7.4
cypress-multi-reporters: ^1.6.3 => 1.6.3
cypress-real-events: ^1.8.1 => 1.8.1
cypress-recurse: ^1.35.1 => 1.35.2
cypress-slack-reporter: ^1.5.3 => 1.5.3
cypress-slow-down: ^1.2.1 => 1.2.1
cypress-time-marks: ^1.4.0 => 1.4.0
esbuild: ^0.17.19 => 0.17.19 (0.14.54)
eslint: ^8.41.0 => 8.41.0
eslint-plugin-cypress: ^2.13.3 => 2.13.3
fs-extra: ^11.1.1 => 11.1.1 (9.1.0, 7.0.1, 10.1.0)
mocha: ^10.2.0 => 10.2.0
mochawesome: ^7.1.3 => 7.1.3
mochawesome-merge: ^4.3.0 => 4.3.0
mochawesome-report-generator: ^6.2.0 => 6.2.0
moment: ^2.29.4 => 2.29.4
typescript: ^5.0.4 => 5.0.4
uid: ^2.0.2 => 2.0.2
npmGlobalPackages:
corepack: 0.14.2
npm: 9.6.4
Describe the bug
When launching my script command after switching from cy2 to cypress-cloud, it seem that it's not possible to run --headless option.
"scripts": {
"test": "npx cypress-cloud run --record --key XXX --parallel --ci-build-id $CI_PIPELINE_ID --env allure=true,configFile=dev --browser chrome --headless",
},
Got this error :
error: unknown option '--headless'
Expected behavior
--headless
CLI option is recognized to launch test on headless mode.
Command and Setup
Command run :
npm run test
Config :
// currents.config.ts
module.exports = {
projectId: "yyy",
recordKey: "xxx",
// Sorry Cypress users - set the director service URL
cloudServiceUrl: "http://localhost:1234/",
};
Full log and debug output
> DEBUG=currents:*,cypress:* npx cypress-cloud run --record --key XXX --parallel --ci-build-id $CI_PIPELINE_ID --env allure=true,configFile=dev --browser chrome --headless
currents:capture capturing stdout +0ms
cypress:cli exporting Cypress module interface +0ms
error: unknown option '--headless'
samixchoumi commented
Found that it's headless by default by looking at the discussions section.