Skip to content
Snippets Groups Projects
Commit 49f97f1b authored by rhenck's avatar rhenck
Browse files

[e2e] Fix DropList tests to leave the source list

This is necessary now because mouseenter events are only handled when 
not already being over a list.
parent 487eb6e8
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,15 @@ export function addOption(optionName: string): void {
export function dragTo(list: string, item: string, targetList: string): void {
cy.get(`#${list}`).contains('.drop-list-item', item)
.trigger('mousedown', { button: 0 });
// Moving the mouse is actually not necessary, since the mouseenter event is not triggered.
// It is triggered manually in the next step.
// cy.get('.drag-preview').trigger('mousemove', { force: true, clientX: 640, clientY: 199 });
// Leave first, to change a variable and actually handle mouseenter events
cy.get(`#${list}`)
.trigger('mouseleave');
cy.get(`#${targetList}`)
.trigger('mouseenter');
cy.get('.drag-preview')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment