Skip to content

Commit

Permalink
Delete drap and drop command
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Nov 12, 2023
1 parent 13fb652 commit a05c85c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions cypress/support/commands.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cypress.Response<any>>

/**
* **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<Element>
}
}
4 changes: 0 additions & 4 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,3 @@ Cypress.Commands.add(
});
}
);

Cypress.Commands.add("dragAndDropTableAt", (x, y) => {
cy.get(".joint-type-uml-class").move({ deltaX: x, deltaY: y });
});

0 comments on commit a05c85c

Please # to comment.