Skip to content

Commit 5e06124

Browse files
committed
Merge discvr-21.3 to discvr-21.7
2 parents e327d70 + c54176a commit 5e06124

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import org.apache.commons.lang3.StringUtils;
1919
import org.jetbrains.annotations.Nullable;
20+
import org.junit.Assert;
2021
import org.labkey.test.BaseWebDriverTest;
2122
import org.labkey.test.Locator;
2223
import org.labkey.test.util.DataRegionTable;
@@ -250,6 +251,8 @@ public void goToAssayResultImport(String assayName, boolean supportsTemplates)
250251

251252
public String getExampleData()
252253
{
254+
String ret = null;
255+
253256
String currentWindow = _test.getDriver().getWindowHandle();
254257
for (String handle : _test.getDriver().getWindowHandles())
255258
{
@@ -259,10 +262,13 @@ public String getExampleData()
259262
String text = getPageText();
260263
_test.getDriver().close();
261264
_test.getDriver().switchTo().window(currentWindow);
262-
return text;
265+
ret = StringUtils.trimToNull(text);
263266
}
264267
}
265-
return null;
268+
269+
Assert.assertNotNull("Unable to retrieve example data", StringUtils.trimToNull(ret));
270+
271+
return ret;
266272
}
267273

268274
public Locator toolIcon(String name)

0 commit comments

Comments
 (0)