From 118afe4be1593b224f2d89fb7c61bcd8b6fb2dfb Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Thu, 9 Oct 2025 14:32:15 -0700 Subject: [PATCH] Issue 53997: add tests for max query selection interactions --- src/org/labkey/test/components/ui/grids/GridRow.java | 5 +++++ src/org/labkey/test/components/ui/grids/QueryGrid.java | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/org/labkey/test/components/ui/grids/GridRow.java b/src/org/labkey/test/components/ui/grids/GridRow.java index 4e0906efbd..ee920a2767 100644 --- a/src/org/labkey/test/components/ui/grids/GridRow.java +++ b/src/org/labkey/test/components/ui/grids/GridRow.java @@ -79,6 +79,11 @@ public GridRow select(boolean checked) return this; } + public ReactCheckBox getCheckbox() + { + return elementCache().selectCheckbox; + } + /** * gets the cell at the specified index */ diff --git a/src/org/labkey/test/components/ui/grids/QueryGrid.java b/src/org/labkey/test/components/ui/grids/QueryGrid.java index f67124827f..04a477c094 100644 --- a/src/org/labkey/test/components/ui/grids/QueryGrid.java +++ b/src/org/labkey/test/components/ui/grids/QueryGrid.java @@ -293,6 +293,11 @@ public boolean hasSelectAllButton() return elementCache().selectAllBtnLoc.findWhenNeeded(this).isDisplayed(); } + public WebElement getSelectAllButton() + { + return elementCache().selectAllBtnLoc.findWhenNeeded(this); + } + /** * Selects all rows in the target domain, including those on other pages, if there are any */ @@ -765,7 +770,7 @@ protected class ElementCache extends ResponsiveGrid.ElementCache final Locator.XPathLocator selectionStatusContainerLoc = Locator.tagWithClass("div", "selection-status"); final Locator selectAllBtnLoc = selectionStatusContainerLoc.append(Locator.tagWithClass("span", "selection-status__select-all") - .child(Locator.buttonContainingText("Select all"))); + .child(Locator.buttonContainingText("Select"))); final Locator clearBtnLoc = selectionStatusContainerLoc.append(Locator.byClass("selection-status__clear-all") .child(Locator.tag("button")));