diff --git a/e2e/tests/e2e/droplist-util.ts b/e2e/tests/e2e/droplist-util.ts index ebe5e94d1427af0ea7c62233c60ab5adf692fb83..09ef4923385c08836b5a79437853b126796950b5 100644 --- a/e2e/tests/e2e/droplist-util.ts +++ b/e2e/tests/e2e/droplist-util.ts @@ -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')