The simplest code to show a strange mouse-related Cypress behavior.
Run it with
npm install
npm run server:create
# in another tab/window
npm test
The simple index.html
page contains an unclickable button (try to manually move the mouse and click it) but Cypress can do that because it doesn't trigger any mousemove
events.
I created this repo with the only goal of opening an issue to the Cypress team providing them a simple repo to reproduce it.
If you want to test the Puppeteer behavior just checkout the puppeteer branch.
TestCafè behaves like Puppeteer: it moves the cursor to the button triggering different mousemove
events (read here some more details).
All began with this question on StackOverflow and then I wrote some tests in Puppeteer, TextCafé and Cypress to check the strang Cypress's behavior.