Skip to content

Commit a6d8dfb

Browse files
authored
Refactor click action to include pause before click
1 parent d0db6a2 commit a6d8dfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.labkey.test.Locator;
3737
import org.labkey.test.TestFileUtils;
3838
import org.labkey.test.TestTimeoutException;
39-
import org.labkey.test.WebDriverWrapper;
4039
import org.labkey.test.WebTestHelper;
4140
import org.labkey.test.categories.External;
4241
import org.labkey.test.categories.LabModule;
@@ -457,7 +456,10 @@ private void testTitleMapping()
457456

458457
Actions actions = new Actions(getDriver());
459458
WebElement toClick = getDriver().findElements(getVariantWithinTrack("mgap_hg38", "SNV T -> C")).stream().filter(WebElement::isDisplayed).collect(JBrowseTestHelper.toSingleton()); // 1:137..137
460-
actions.click(toClick).perform();
459+
actions.moveToElement(toClick)
460+
.pause(500)
461+
.click()
462+
.perform();
461463
waitForElement(Locator.tagWithText("div", "1:137"));
462464
assertElementPresent(Locator.tagWithText("td", "Minor Allele Frequency"));
463465
}

0 commit comments

Comments
 (0)