Skip to content

Commit 3966dea

Browse files
authored
Fix for SMEditableGridTest.testDragFillReadOnlyColumn (#2936)
#### Rationale The beginDrag method for the UI component has a 150 ms timer to distinguish between a drag and a click. I've added a 200 ms wait to the drag action in the test to account for this. #### Related Pull Requests - <!-- list of links to related pull requests (replace this comment) --> #### Changes - <!-- list of descriptions of changes that are worth noting (replace this comment) -->
1 parent e4c9a9a commit 3966dea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/org/labkey/test/components/ui/grids/EditableGrid.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ private void dragToCell(WebElement elementToDrag, WebElement destinationCell)
10401040
// WebDriver doesn't calculate correct location to click the cell selection handle
10411041
.moveToElement(elementToDrag, 0, 7)
10421042
.clickAndHold()
1043+
.pause(Duration.ofMillis(200))
10431044
.moveToElement(destinationCell)
10441045
// Extra wiggle to get it to stick
10451046
.moveByOffset(0, -size.getHeight())

0 commit comments

Comments
 (0)