Skip to content

Commit e86293d

Browse files
authored
Issue 53997: Establish a maximum size for query selections (#2738)
1 parent 518f3e1 commit e86293d

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ public GridRow select(boolean checked)
7979
return this;
8080
}
8181

82+
public ReactCheckBox getCheckbox()
83+
{
84+
return elementCache().selectCheckbox;
85+
}
86+
8287
/**
8388
* gets the cell at the specified index
8489
*/

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ public boolean hasSelectAllButton()
293293
return elementCache().selectAllBtnLoc.findWhenNeeded(this).isDisplayed();
294294
}
295295

296+
public WebElement getSelectAllButton()
297+
{
298+
return elementCache().selectAllBtnLoc.findWhenNeeded(this);
299+
}
300+
296301
/**
297302
* Selects all rows in the target domain, including those on other pages, if there are any
298303
*/
@@ -765,7 +770,7 @@ protected class ElementCache extends ResponsiveGrid<QueryGrid>.ElementCache
765770

766771
final Locator.XPathLocator selectionStatusContainerLoc = Locator.tagWithClass("div", "selection-status");
767772
final Locator selectAllBtnLoc = selectionStatusContainerLoc.append(Locator.tagWithClass("span", "selection-status__select-all")
768-
.child(Locator.buttonContainingText("Select all")));
773+
.child(Locator.buttonContainingText("Select")));
769774
final Locator clearBtnLoc = selectionStatusContainerLoc.append(Locator.byClass("selection-status__clear-all")
770775
.child(Locator.tag("button")));
771776

0 commit comments

Comments
 (0)