Skip to content

Commit

Permalink
fixes drag and drop flakiness (#60625) (#60642)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
MadameSheema and elasticmachine authored Mar 20, 2020
1 parent 546ad07 commit e8a28a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/legacy/plugins/siem/cypress/tasks/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export const drag = (subject: JQuery<HTMLElement>) => {
clientY: subjectLocation.top,
force: true,
})
.wait(5)
.wait(100)
.trigger('mousemove', {
button: primaryButton,
clientX: subjectLocation.left + dndSloppyClickDetectionThreshold,
clientY: subjectLocation.top,
force: true,
})
.wait(5);
.wait(100);
};

/** Drags the subject being dragged on the specified drop target, but does not drop it */
Expand All @@ -44,7 +44,7 @@ export const dragWithoutDrop = (dropTarget: JQuery<HTMLElement>) => {
export const drop = (dropTarget: JQuery<HTMLElement>) => {
cy.wrap(dropTarget)
.trigger('mousemove', { button: primaryButton, force: true })
.wait(5)
.wait(100)
.trigger('mouseup', { force: true })
.wait(5);
.wait(100);
};

0 comments on commit e8a28a9

Please sign in to comment.