Introduction
You use cy.trigger() to make your web page act like a user did something, like clicking or typing, but you do it in your test automatically.
When you want to test how your page reacts to a special event that is not a normal click or type.
When you want to check if your page listens and responds correctly to custom events you made.
When you want to simulate user actions that are hard to do with normal commands.
When you want to trigger events on elements that are hidden or disabled for normal user actions.