Angular mounting in component testing weirdly overlaps properties #28658
Labels
CT
Issue related to component testing
npm: @cypress/angular
@cypress/angular package issues
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
Current behavior
When I mount and angular component several times, it overrides the previous component but some elements are not reset, for example the @HostBinding classes are added every iteration of the mount without cleaning the previous one.
Desired behavior
I expect either the previous instance is fully removed/cleansed or a new instance is added
Test code to reproduce
Use
cy.mount(CustomButtomComponent, { componentProperties: { buttonType: 'class1' } });
cy.mount(CustomButtomComponent, { componentProperties: { buttonType: 'class2' } });
Cypress Version
13.6.2
Node version
18.18.1
Operating System
macOS 14.2.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: