mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* increases the time between dragging and dropping an element * fixes test
This commit is contained in:
parent
27a783e032
commit
a9cd868dd8
2 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ describe('timeline data providers', () => {
|
|||
.first()
|
||||
.invoke('text')
|
||||
.should(hostname => {
|
||||
expect(dataProviderText).to.eq(hostname);
|
||||
expect(dataProviderText).to.eq(`host.name: "${hostname}"`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -23,14 +23,14 @@ export const drag = (subject: JQuery<HTMLElement>) => {
|
|||
clientY: subjectLocation.top,
|
||||
force: true,
|
||||
})
|
||||
.wait(100)
|
||||
.wait(1000)
|
||||
.trigger('mousemove', {
|
||||
button: primaryButton,
|
||||
clientX: subjectLocation.left + dndSloppyClickDetectionThreshold,
|
||||
clientY: subjectLocation.top,
|
||||
force: true,
|
||||
})
|
||||
.wait(100);
|
||||
.wait(1000);
|
||||
};
|
||||
|
||||
/** Drags the subject being dragged on the specified drop target, but does not drop it */
|
||||
|
@ -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(100)
|
||||
.wait(1000)
|
||||
.trigger('mouseup', { force: true })
|
||||
.wait(100);
|
||||
.wait(1000);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue