Skip to content

Commit a125b5a

Browse files
Copilotrenemadsen
andcommitted
Update test to drag from field element for CDK drag-drop compatibility
Co-authored-by: renemadsen <[email protected]>
1 parent b9b7d57 commit a125b5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eform-client/e2e/Page objects/EformVisualEditor.page.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,9 @@ export class ChecklistFieldRowObj {
726726
});
727727
}
728728

729-
async changePosition(tarasyncField: ChecklistFieldRowObj) {
730-
await this.moveFieldBtn.dragAndDrop(tarasyncField.element);
729+
async changePosition(targetField: ChecklistFieldRowObj) {
730+
// For CDK drag-drop: drag from the field element itself to the target field element
731+
await this.element.dragAndDrop(targetField.element);
731732
}
732733
}
733734

0 commit comments

Comments
 (0)