Skip to main content

Exit Intent

Exit Intent Modal Demo

This mimics the “exit intent” automation pattern. It triggers once until reset.

Tip: Move the cursor quickly to the top of the page to trigger.

Practice ideas:

  • Trigger the exit intent modal by moving the mouse outside the viewport.
  • Validate that the modal is visible and contains expected text.
  • Close using Close, clicking outside, or pressing Esc.
Triggered: false
Status: Modal state is tracked with aria-hidden on the overlay. Use locators like [data-testid="overlay"].