Skip to content

Commit 3d2126e

Browse files
author
Johannes Weber
committed
chore: Fix uap action button test
1 parent 36dfb4a commit 3d2126e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/board-layout/uap-action-button-interactions.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const boardItemDragHandle = (id: string) => boardWrapper.findItemById(id).findDr
1414
const boardItemResizeHandle = (id: string) => boardWrapper.findItemById(id).findResizeHandle().toSelector();
1515
const paletteItemDragHandle = (id: string) => itemsPaletteWrapper.findItemById(id).findDragHandle().toSelector();
1616
const dragHandleWrapper = new DragHandleWrapper("body");
17+
const directionButtons = () => dragHandleWrapper.findAllVisibleDirectionButtons().toSelector();
1718
const directionButtonUp = () => dragHandleWrapper.findVisibleDirectionButtonBlockStart().toSelector();
1819
const directionButtonDown = () => dragHandleWrapper.findVisibleDirectionButtonBlockEnd().toSelector();
1920
const directionButtonLeft = () => dragHandleWrapper.findVisibleDirectionButtonInlineStart().toSelector();
@@ -23,8 +24,8 @@ describe("items reordered with UAP actions", () => {
2324
test(
2425
"item move can be submitted",
2526
setupTest("/index.html#/dnd/engine-a2h-test", DndPageObject, async (page) => {
26-
await page.mouseDown(boardItemDragHandle("A"));
27-
await page.mouseUp();
27+
await page.click(boardItemDragHandle("A"));
28+
await page.waitForVisible(directionButtons());
2829
await page.click(directionButtonRight());
2930
await page.click(directionButtonRight());
3031
await page.click(directionButtonDown());
@@ -118,7 +119,7 @@ describe("items resized with keyboard", () => {
118119
}),
119120
);
120121

121-
test.only(
122+
test(
122123
"item resize via UAP actions and keyboard can be submitted",
123124
setupTest("/index.html#/dnd/engine-a2h-test", DndPageObject, async (page) => {
124125
await page.mouseDown(boardItemResizeHandle("A"));

0 commit comments

Comments
 (0)