Use Cypress drag-drop package for all interactions (#2891)
This commit is contained in:
parent
2e450d55a6
commit
6814990378
2 changed files with 4 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue