_Please make sure you have read the submission guidelines before posting an issue_
Please answer the following questions for yourself before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.
Please describe the behavior you are expecting
What is the current behavior?
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Please provide detailed steps for reproducing the issue.
If you can provide steps to reproduce from scratch, that would be enormously appreciated (i.e. where the first step is npx create-nx-workspace@latest repro-workspace)
Please provide any relevant information about your setup:
nx report at the root of your workspace and copy the results here if you are using Nx 8.6.1 or greater_)A minimal reproduction scenario allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
Please include any relevant log snippets or files here.
Any other relevant information that will help us help you.
Using --headless mode isn't hiding the chrome browser. Using the latest version of nrwl.
Same problem for me when using cypress with nx e2e projectName 鈥攂rowser chrome 鈥攈eadless on @nrwl/[email protected] with [email protected]
Folks. Could you try it with Nx 9.1.0? Cypress 4 wasn't officially supported by Nx <= 9.1
If the issue persists with 9.1., could you provide a repository with a repro?
Folks. Could you try it with Nx 9.1.0? Cypress 4 wasn't officially supported by Nx <= 9.1
If the issue persists with 9.1., could you provide a repository with a repro?
Can confirm that the issue persists.
I prepared a reproduction for you.
The script yarn example-e2e should run cypress with browser Chrome in headless mode but it's starting with UI.
My current workaround is to run cypress with the following command
cypress run -P path/to/e2e-app --browser chrome --headless
after changing plugins/index.js to look like this:
const { preprocessTypescript } = require('@nrwl/cypress/plugins/preprocessor');
const { cwd } = require('process');
const { join } = require('path');
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// Preprocess Typescript file using Nx helper
config.env.tsConfig = join(cwd(), 'tsconfig.e2e.json');
on('file:preprocessor', preprocessTypescript(config));
};
This is fixed in the latest version of Nx by #2683! :tada:
Thank you for reporting the issue!
Most helpful comment
Same problem for me when using cypress with
nx e2e projectName 鈥攂rowser chrome 鈥攈eadlesson @nrwl/[email protected] with [email protected]