Skip to content

Commit

Permalink
fix drag-drop shortcut prosition with fitToContainer true and scroll …
Browse files Browse the repository at this point in the history
…layout (visual test)
  • Loading branch information
dmitry-kurmanov committed Feb 15, 2024
1 parent 6229a72 commit bd03617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion visualRegressionTests/tests/defaultV2/ranking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,11 @@ frameworks.forEach(framework => {
question.dragDropRankingChoices.removeGhostElementFromSurvey = () => { };
question.dragDropRankingChoices.domAdapter.drop = () => { };
question.dragDropRankingChoices.domAdapter.clear = () => { };
question.dragDropRankingChoices.domAdapter.doScroll = () => { };
});

await patchDragDropToShowGhostElementAfterDrop();
await t.dragToElement(item1, qustion);
await t.dragToElement(item1, item1);
await takeElementScreenshot("question-ranking-shortcut-position-container-scroll-layout.png", Selector(".sd-question"), t, comparer);
});
});
Expand Down

0 comments on commit bd03617

Please sign in to comment.