Skip to content

Commit cca7d47

Browse files
authored
Add sleep before clicking variant in JBrowseTest
Added a sleep before clicking on the variant to ensure rendering.
1 parent cf32662 commit cca7d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ private void testTitleMapping()
452452

453453
Actions actions = new Actions(getDriver());
454454
WebElement toClick = getDriver().findElements(getVariantWithinTrack("mgap_hg38", "SNV T -> C")).stream().filter(WebElement::isDisplayed).collect(JBrowseTestHelper.toSingleton()); // 1:137..137
455-
actions.clickAndHold(toClick).perform();
456-
actions.release().perform();
455+
WebDriverWrapper.sleep(100); // This allows a short window for rendering prior to clicking variants
456+
actions.click().perform();
457457

458458
waitForElement(Locator.tagWithText("div", "1:137"));
459459
assertElementPresent(Locator.tagWithText("td", "Minor Allele Frequency"));

0 commit comments

Comments
 (0)