nx icon indicating copy to clipboard operation
nx copied to clipboard

Angular Cypress Component Testing not applying style correctly

Open kanidjar opened this issue 1 year ago • 0 comments

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

With NX:

Capture d’écran 2022-09-20 à 12 07 21

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

With NX

nx component-test application
Capture d’écran 2022-09-20 à 12 06 10

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:

kanidjar avatar Sep 20 '22 10:09 kanidjar