You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular components are mounted inside a generated top-level div that is outside of our control
Desired behavior
Angular components should be mounted inside of <div data-cy-root></div> so as to accommodate for custom style specificity and to conform with the rest of our mounting frameworks
Test code to reproduce
Any Angular app with CT setup, check out the DOM inside the AUT iframe to verify once a component has been mounted.
Cypress Version
10.10.0
Other
The rendering of the Angular component is managed by TestBed, specifically the DOMTestComponentRenderer. We could probably override this to always target the data-cy-root element.
The text was updated successfully, but these errors were encountered:
Current behavior
Angular components are mounted inside a generated top-level div that is outside of our control

Desired behavior
Angular components should be mounted inside of
<div data-cy-root></div>
so as to accommodate for custom style specificity and to conform with the rest of our mounting frameworksTest code to reproduce
Any Angular app with CT setup, check out the DOM inside the AUT iframe to verify once a component has been mounted.
Cypress Version
10.10.0
Other
The rendering of the Angular component is managed by
TestBed
, specifically the DOMTestComponentRenderer. We could probably override this to always target thedata-cy-root
element.The text was updated successfully, but these errors were encountered: