Trigger a custom event and verify event handler execution
Preconditions (2)
Step 1: Visit the web page containing the button.
Step 2: Use cy.get() to select the button with id 'custom-event-btn'.
Step 3: Trigger the custom event 'myCustomEvent' on the button using cy.trigger().
Step 4: Verify that the button text changes to 'Event Triggered!'.
✅ Expected Result: The button text changes to 'Event Triggered!' after the custom event 'myCustomEvent' is triggered.