nx
nx copied to clipboard
Angular Cypress Component Testing not applying style correctly
Current Behavior
Mounted component style is not applied correctly
Expected Behavior
Style should be applied correctly.
With Angular CLI

With NX:

Steps to Reproduce
https://github.com/kanidjar/nx-cypress-ct-styling-bug
One example with the Angular CLI (working) Same example with NX (not working)
With Angular CLI
cypress open

With NX
nx component-test application

Env
> NX Report complete - copy this into the issue template
Node : 18.7.0
OS : darwin arm64
npm : 8.15.0
nx : 14.7.6
@nrwl/angular : 14.7.6
@nrwl/cypress : 14.7.6
@nrwl/detox : Not Found
@nrwl/devkit : 14.7.6
@nrwl/eslint-plugin-nx : 14.7.6
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 14.7.6
@nrwl/js : 14.7.6
@nrwl/linter : 14.7.6
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.7.6
@nrwl/web : Not Found
@nrwl/workspace : 14.7.6
typescript : 4.8.3
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins: