Use Cypress drag-drop package for all interactions (#2891)

This commit is contained in:
Jon Koops 2022-06-29 15:38:32 +02:00 committed by GitHub
parent 2e450d55a6
commit 6814990378
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View file

@ -10,14 +10,8 @@ export default class OrderDialog {
}
moveRowTo(from: string, to: string) {
cy.findByTestId(from).trigger("dragstart").trigger("dragleave");
cy.findByTestId(to)
.trigger("dragenter")
.trigger("dragover")
.trigger("drop")
.trigger("dragend");
cy.findByTestId(to).as("target");
cy.findByTestId(from).drag("@target");
return this;
}

View file

@ -10,14 +10,8 @@ export default class PriorityDialog {
}
moveRowTo(from: string, to: string) {
cy.findByTestId(from).trigger("dragstart").trigger("dragleave");
cy.findByTestId(to)
.trigger("dragenter")
.trigger("dragover")
.trigger("drop")
.trigger("dragend");
cy.findByTestId(to).as("target");
cy.findByTestId(from).drag("@target");
return this;
}