File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
jbrowse/test/src/org/labkey/test/tests/external/labModules Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -407,14 +407,22 @@ private void testOutputFileProcessing() throws Exception
407407
408408 //Now test search:
409409 beginAt ("/jbrowse/" + getContainerId () + "/search.view?session=" + sessionId );
410+ String search = "Ga" ;
411+ String expected = "Gag" ;
412+
410413 Locator searchLocator = Locator .tagWithClass ("input" , "MuiInputBase-input" );
411414 waitForElement (searchLocator );
412415 WebElement searchBox = searchLocator .findElement (getDriver ());
413- searchBox .sendKeys ("Ga" ); // Test autocomplete
414- searchBox .sendKeys (Keys .ARROW_DOWN ); // Navigate and select result
416+ searchBox .sendKeys (search );
417+
418+ Locator optionLocator = Locator .tagWithText ("li" , expected );
419+ waitForElement (optionLocator );
420+
421+ searchBox .sendKeys (Keys .ARROW_DOWN );
415422 searchBox .sendKeys (Keys .ENTER );
416- waitForElement (Locator .tagWithClass ("input" , "MuiInputBase-input" ));
417- Assert .assertEquals ("Correct ID selected" , searchBox .getAttribute ("value" ), "Gag" );
423+
424+ waitForElement (searchLocator );
425+ Assert .assertEquals ("Correct ID selected" , expected , searchBox .getAttribute ("value" ));
418426 }
419427
420428 public static <T > Collector <T , ?, T > toSingleton () {
You can’t perform that action at this time.
0 commit comments