Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/org/labkey/test/components/ui/grids/EditableGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public EditableGrid shiftSelectRange(int start, int end)
throw new NoSuchElementException("there is no selection column for grid");

var checkBoxes = Locator.tag("tr").child("td")
.child(Locator.byClass("table-cell-content"))
.child(Locator.tagWithAttribute("input", "type", "checkbox"))
.findElements(elementCache().table);
getWrapper().scrollIntoView(checkBoxes.get(start)); // Make sure the header isn't in the way
Expand Down
3 changes: 2 additions & 1 deletion src/org/labkey/test/tests/component/EditableGridTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,13 @@ public void testShiftClick()
Tests the scenario where a row is selected, then another, and another are shift-selected
expects the range-bump to redefine the selected range
*/
@Test public void testShiftSelect_bumpSelect()
@Test public void testShiftSelectMultipleTimes()
{
EditableGrid testGrid = goToEditableGrid(PASTING_SAMPLE_TYPE);
testGrid.addRows(15);

Locator boxes = Locator.tag("tr").child("td")
.child(Locator.byClass("table-cell-content"))
.child(Locator.tagWithAttribute("input", "type", "checkbox"));
var checkBoxes = boxes.findElements(testGrid);
scrollIntoView(checkBoxes.get(2), false);
Expand Down