Angular Component Testing: ngOnChanges
does not fire when using Class syntax
#23591
Labels
CT
Issue related to component testing
Current behavior
When using the Class syntax in a Cypress Component test,
ngOnChanges
does not fire.,Desired behavior
ngOnChanges should always fire when an input property is set.
Test code to reproduce
Create a component which implements OnChanges and make it set a flag which we display in the template:
Create a Cypress component test and assert the output:
The first test succeeds (template syntax), and the second test fails (class syntax).
Cypress Version
10.6.0
Node version
16.15.1
Operating System
Windows 10
Debug Logs
No response
Other
Angular 13.3.11
The text was updated successfully, but these errors were encountered: