/cypress-mouse-position

Displays the mouse position within your app in Cypress

Primary LanguageJavaScriptMIT LicenseMIT

Cypress Mouse Plugin

Plugin for displaying mouse position within Cypress' iframe where your app is tested.

cypress-mouse-position

Installation

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';