Skip to content

Commit

Permalink
work for the #5740
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Aug 6, 2024
1 parent d9c34e2 commit 30d98c6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,15 @@ test("surveyelement: onDragStart and onDragEnd events", () => {
ddHelper.draggedElement = question2;
ddHelper.dropTarget = question1;

ddHelper["createDraggedElementShortcut"] = ()=>{};
ddHelper.dragInit(null, ddHelper.draggedElement, ddHelper.parentElement, document.createElement("div"));
expect(beforeCount).toBe(1);

ddHelper["draggedElementShortcut"] = document.body.appendChild(
document.createElement("div")
);
ddHelper["allowDropHere"] = true;
ddHelper["drop"]();
expect(beforeCount).toBe(1);
expect(afterCount).toBe(1);
expect(draggedElement.name).toBe("q2");

Expand Down

0 comments on commit 30d98c6

Please sign in to comment.