Skip to content

Commit

Permalink
fixes drag and drop flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Mar 19, 2020
1 parent 836b3d0 commit 7d2fb01
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 7d2fb01

Please sign in to comment.