Skip to content

Commit 2ea7928

Browse files
committed
Add withTextIgnoreCase, use it to verify file root message
1 parent 60e3010 commit 2ea7928

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/org/labkey/test/BaseWebDriverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ public void setPipelineRoot(String rootPath, boolean inherit)
19021902
{
19031903
_setPipelineRoot(rootPath, inherit);
19041904

1905-
waitForElement(Locators.labkeyMessage.withText("The pipeline root was set to '" + Paths.get(rootPath).normalize() + "'"));
1905+
waitForElement(Locators.labkeyMessage.withTextIgnoreCase("The pipeline root was set to '" + Paths.get(rootPath).normalize() + "'"));
19061906

19071907
getArtifactCollector().addArtifactLocation(new File(rootPath));
19081908

src/org/labkey/test/Locator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,11 @@ public XPathLocator withText(String text)
12471247
return this.withPredicate("normalize-space()="+xq(ns(text)));
12481248
}
12491249

1250+
public XPathLocator withTextIgnoreCase(String text)
1251+
{
1252+
return this.withPredicate("contains(" + toLowerCase("normalize-space()", text) + ", "+xq(ns(text.toLowerCase()))+")");
1253+
}
1254+
12501255
public XPathLocator withText()
12511256
{
12521257
return this.withPredicate("string-length() > 0");

0 commit comments

Comments
 (0)