Skip to content

Commit b5baa83

Browse files
authored
Add sleep for rendering before clicking variants (#395)
* Add sleep for rendering before clicking variants
1 parent b11c420 commit b5baa83

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,16 @@ private void testTitleMapping()
450450
beginAt("/" + getProjectName() + "/jbrowse-jbrowse.view?session=mgap&location=1:104..275");
451451
waitForJBrowseToLoad();
452452

453+
// This will wait for them, allowing the full browser to lod:
454+
getVariantWithinTrack("mgap_hg38", "SNV C -> T");
455+
getVariantWithinTrack("mgap_hg38", "SNV G -> C");
456+
453457
Actions actions = new Actions(getDriver());
454458
WebElement toClick = getDriver().findElements(getVariantWithinTrack("mgap_hg38", "SNV T -> C")).stream().filter(WebElement::isDisplayed).collect(JBrowseTestHelper.toSingleton()); // 1:137..137
455-
actions.click(toClick).perform();
459+
actions.moveToElement(toClick)
460+
.pause(500)
461+
.click()
462+
.perform();
456463
waitForElement(Locator.tagWithText("div", "1:137"));
457464
assertElementPresent(Locator.tagWithText("td", "Minor Allele Frequency"));
458465
}
@@ -1811,4 +1818,4 @@ private void testLuceneColumnSerialization(String sessionId) {
18111818
Assert.assertEquals(colVisModelString, getUrlParam("colVisModel"));
18121819
testLuceneColumnSerializationFirstRow();
18131820
}
1814-
}
1821+
}

0 commit comments

Comments
 (0)