@@ -102,7 +102,7 @@ private void testDemoUi()
102102 beginAt ("/home/jbrowse-jbrowse.view?session=demo" );
103103 waitForJBrowseToLoad ();
104104
105- Actions actions = new Actions (getDriver ());
105+ Actions actions = newabortsigna Actions (getDriver ());
106106 By by = getVariantWithinTrack ("clinvar_ncbi_hg38_2" , "294665" , true );
107107 WebElement toClick = getDriver ().findElements (by ).stream ().filter (WebElement ::isDisplayed ).findFirst ().orElseThrow ();
108108 actions .click (toClick ).perform ();
@@ -407,15 +407,15 @@ private void testOutputFileProcessing() throws Exception
407407
408408 //Now test search:
409409 beginAt ("/jbrowse/" + getContainerId () + "/search.view?session=" + sessionId );
410-
411- WebElement searchBox = Locator .tagWithClass ("div" , "MuiInputBase-root" ).findElement (getDriver ());
412- searchBox .sendKeys ("1" );
413- waitForElement (Locator .tagWithText ("div" , "1" ));
414- Assert .assertEquals ("Incorrect row count" , 3 , dr .getDataRowCount ());
410+ WebElement searchBox = Locator .tagWithClass ("input" , "MuiInputBase-input" ).findElement (getDriver ());
411+ searchBox .sendKeys ("Ga" ); // Test autocomplete
412+ searchBox .sendKeys (Keys .ARROW_DOWN ); // Navigate and select result
415413 searchBox .sendKeys (Keys .ENTER );
414+ waitForElement (searchBox );
415+ Assert .assertEquals ("Correct ID selected" , searchBox .getAttribute ("value" ), "Gag" );
416416
417417 click (Locator .tagWithText ("button" , "Open" ));
418- waitForElement (Locator .tagWithText ("span " , "Tracks Provided By This Session " ));
418+ waitForElement (Locator .tagWithText ("div " , "Gag" ). withClass ( "MuiPaper-root " ));
419419 }
420420
421421 public static <T > Collector <T , ?, T > toSingleton () {
0 commit comments