Skip to content

Commit a77fb7f

Browse files
author
hextraza
committed
Fix timing issue on test
1 parent c90a731 commit a77fb7f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,14 @@ private void testOutputFileProcessing() throws Exception
407407

408408
//Now test search:
409409
beginAt("/jbrowse/" + getContainerId() + "/search.view?session=" + sessionId);
410-
WebElement searchBox = Locator.tagWithClass("input", "MuiInputBase-input").findElement(getDriver());
410+
Locator searchLocator = Locator.tagWithClass("input", "MuiInputBase-input");
411+
waitForElement(searchLocator);
412+
WebElement searchBox = searchLocator.findElement(getDriver());
411413
searchBox.sendKeys("Ga"); // Test autocomplete
412414
searchBox.sendKeys(Keys.ARROW_DOWN); // Navigate and select result
413415
searchBox.sendKeys(Keys.ENTER);
414416
waitForElement(Locator.tagWithClass("input", "MuiInputBase-input"));
415417
Assert.assertEquals("Correct ID selected", searchBox.getAttribute("value"), "Gag");
416-
417-
click(Locator.tagWithText("button", "Open"));
418-
waitForElement(Locator.tagWithText("div", "Gag").withClass("MuiPaper-root"));
419418
}
420419

421420
public static <T> Collector<T, ?, T> toSingleton() {

0 commit comments

Comments
 (0)