@@ -14,6 +14,7 @@ const boardItemDragHandle = (id: string) => boardWrapper.findItemById(id).findDr
1414const boardItemResizeHandle = ( id : string ) => boardWrapper . findItemById ( id ) . findResizeHandle ( ) . toSelector ( ) ;
1515const paletteItemDragHandle = ( id : string ) => itemsPaletteWrapper . findItemById ( id ) . findDragHandle ( ) . toSelector ( ) ;
1616const dragHandleWrapper = new DragHandleWrapper ( "body" ) ;
17+ const directionButtons = ( ) => dragHandleWrapper . findAllVisibleDirectionButtons ( ) . toSelector ( ) ;
1718const directionButtonUp = ( ) => dragHandleWrapper . findVisibleDirectionButtonBlockStart ( ) . toSelector ( ) ;
1819const directionButtonDown = ( ) => dragHandleWrapper . findVisibleDirectionButtonBlockEnd ( ) . toSelector ( ) ;
1920const 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