Plugin for displaying mouse position within Cypress' iframe where your app is tested.
npm i -D cypress-mouse-position
In cypress/plugins/index.js
add:
const initCypressMousePositionPlugin = require('cypress-mouse-position/plugin');
module.exports = (on, config) => {
# ...
initCypressMousePositionPlugin(on);
# ...
}
In cypress/support/index.js
add:
import 'cypress-mouse-position/commands';