Skip to content

Commit 8bf23df

Browse files
committed
Merge discvr-21.11 to develop
2 parents e09c676 + a9906e9 commit 8bf23df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LDK/test/src/org/labkey/test/util/external/labModules/LabModuleHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public void clickNavPanelItem(String label, String itemText)
9595
{
9696
Locator l = getNavPanelItem(label, itemText);
9797
_test.waitForElement(l);
98+
Assert.assertEquals("Incorrect number of elements: " + label + "/" + itemText, l.findElements(_test.getDriver()).size(), 1);
99+
98100
_test.waitAndClick(l);
99101
}
100102

@@ -260,7 +262,7 @@ public void goToAssayResultImport(String assayName, boolean supportsTemplates)
260262
@LogMethod(quiet = true)
261263
public String clickAndGetExampleData()
262264
{
263-
Locator btn = Locator.linkContainingText("Download Example Data");
265+
Locator btn = Ext4Helper.Locators.ext4ButtonEnabled("Download Example Data");
264266
String currentWindow = _test.getDriver().getWindowHandle();
265267
_test.waitForElement(btn);
266268
_test.waitAndClick(btn);

0 commit comments

Comments
 (0)