feat(tests): add drag test

This commit is contained in:
moklick
2019-09-25 23:04:03 +02:00
parent a6dbd8ebe1
commit 590d7c7db0
36 changed files with 94632 additions and 1926 deletions
+8
View File
@@ -23,3 +23,11 @@
//
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
Cypress.Commands.add('drag', (selector, { x, y }) => {
return cy.get(selector)
.trigger('mousedown', { which: 1 })
.trigger('mousemove', { clientX: x, clientY: y })
.trigger('mouseup', { force: true });
});
-3
View File
@@ -15,6 +15,3 @@
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')