Skip to content

Commit 2cc0240

Browse files
authored
Enhance JBrowseTest to wait for variant loading
Added functionality to wait for variants to load in JBrowse test.
1 parent 49c09ad commit 2cc0240

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ private void testSessionCardDisplay()
438438
beginAt("/" + getProjectName() + "/jbrowse-jbrowse.view?session=mgap&location=1:8328..8842");
439439
waitForJBrowseToLoad();
440440

441+
// This will wait for them, allowing the full browser to lod:
442+
getVariantWithinTrack("mgap_hg38", "SNV C -> T");
443+
getVariantWithinTrack("mgap_hg38", "SNV G -> C");
444+
445+
441446
Actions actions = new Actions(getDriver());
442447
WebElement toClick = getDriver().findElements(getVariantWithinTrack("mgap_hg38", "SNV A -> G")).stream().filter(WebElement::isDisplayed).collect(JBrowseTestHelper.toSingleton());
443448
actions.click(toClick).perform();

0 commit comments

Comments
 (0)