My objective is to develop an e2e test in Cypress for an Angular SPA application, testing if elements are hidden/shown as expected in different viewports.
I have tried using the Cypress viewport command, but this does not seem to trigger the window resize event.
Is this event something I have to dispatch manually? Thanks in regards.
update
The problem was not related to Cypress and resize, but rather change detection in Angular. Here is a stackblitz, if other people need to test this in the future.