Skip to content

Commit d3a9fc7

Browse files
authored
Improve JBrowse lucene test coverage (#213)
* Improve JBrowse lucene test coverage
1 parent 1e39c92 commit d3a9fc7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

jbrowse/test/src/org/labkey/test/tests/external/labModules/JBrowseTest.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,8 +1515,19 @@ private void testVariantTableComparators() throws Exception {
15151515

15161516
private void testLuceneSearchUI(String sessionId, String trackId)
15171517
{
1518-
beginAt("/" + getProjectName() + "/jbrowse-variantSearch.view?session=" + sessionId + "&trackId=" + trackId);
1518+
beginAt("/" + getProjectName() + "/jbrowse-jbrowse.view?session=" + sessionId);
1519+
waitForElement(Locator.tagWithText("span", "Show all regions in assembly"));
1520+
waitAndClick(Locator.tagWithText("span", "Open"));
1521+
waitAndClick(Locator.tagWithText("p", "No tracks active."));
1522+
waitAndClick(Locator.tagWithText("span", "Open Track Selector"));
1523+
1524+
Locator l = Locator.tagWithText("span", "TestVCF").withClass("MuiFormControlLabel-label");
1525+
waitAndClick(l);
1526+
getDriver().findElement(Locator.tag("body")).sendKeys(Keys.ESCAPE); //close modal
1527+
waitAndClick(Locator.tagWithAttribute("button", "data-testid", "track_menu_icon"));
1528+
waitAndClickAndWait(Locator.tagContainingText("span", "Variant Search"));
15191529

1530+
// Now test UI:
15201531
waitForElement(Locator.tagWithText("span", "0.029"));
15211532
}
15221533
}

0 commit comments

Comments
 (0)