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
![Capture d’écran 2022-09-20 à 12 08 39](https://user-images.githubusercontent.com/12607242/191230794-c67a31db-b7ce-4e7f-9c8a-b5de65aac318.png)
With NX:
![Capture d’écran 2022-09-20 à 12 07 21](https://user-images.githubusercontent.com/12607242/191230517-4c8b7968-a1cd-4b0f-87a2-ab1cf481d0ec.png)
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
![Capture d’écran 2022-09-20 à 12 04 52](https://user-images.githubusercontent.com/12607242/191229965-0a4e205a-0e16-4219-90b0-c9035237eccb.png)
With NX
nx component-test application
![Capture d’écran 2022-09-20 à 12 06 10](https://user-images.githubusercontent.com/12607242/191230224-81e2a9e3-a018-48b0-8b9e-95816e392c8f.png)
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: