From a05c85c620301b5eab4dad4f90921e3f4c507199 Mon Sep 17 00:00:00 2001 From: Walmyr Date: Mon, 13 Nov 2023 00:31:05 +0100 Subject: [PATCH] Delete drap and drop command --- cypress/support/commands.d.ts | 10 ---------- cypress/support/commands.js | 4 ---- 2 files changed, 14 deletions(-) diff --git a/cypress/support/commands.d.ts b/cypress/support/commands.d.ts index 2b41ae03..369d5dc7 100644 --- a/cypress/support/commands.d.ts +++ b/cypress/support/commands.d.ts @@ -54,15 +54,5 @@ declare namespace Cypress { * @example cy.createModelViaApi('conceptual', '618f065ed18dc91b10650f99', conceptualModel) // Creates a conceptual model for userId=618f065ed18dc91b10650f99 passing a model object (`conceptualModel`), defined earlier, as a variable */ createModelViaApi(type: string, userId: string, model?: object): Cypress.Chainable> - - /** - * **Moves the table element from the sidebar of the logical model creation view X pixels to its right, and Y pixels down.** - * - * @param deltaX number - The distance (to the right) in pixels relative to the element's current position - * @param deltaY number - The distance (down) in pixels relative to the element's current position - * - * @example cy.dragAndDropTableAt(200, 200) // Moves the table element from the sidebar of the logical model creation view 200 pixels to its right, and 200 pixels down - */ - dragAndDropTableAt(deltaX: number, deltaY: number): Chainable } } diff --git a/cypress/support/commands.js b/cypress/support/commands.js index df4e65de..b4d23fe5 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -59,7 +59,3 @@ Cypress.Commands.add( }); } ); - -Cypress.Commands.add("dragAndDropTableAt", (x, y) => { - cy.get(".joint-type-uml-class").move({ deltaX: x, deltaY: y }); -});