1515 */
1616package org .labkey .test .tests .external .labModules ;
1717
18+ import org .apache .commons .lang3 .StringUtils ;
1819import org .junit .Assert ;
1920import org .junit .Test ;
2021import org .junit .experimental .categories .Category ;
3839import org .labkey .test .util .ext4cmp .Ext4FieldRef ;
3940import org .labkey .test .util .external .labModules .LabModuleHelper ;
4041import org .openqa .selenium .By ;
42+ import org .openqa .selenium .Keys ;
4143import org .openqa .selenium .WebElement ;
4244import org .openqa .selenium .interactions .Actions ;
4345
@@ -390,6 +392,10 @@ private void testOutputFileProcessing() throws Exception
390392 dr = DataRegionTable .findDataRegionWithinWebpart (this , "Additional Tracks Provided By The Base Genome" );
391393 Assert .assertEquals ("Incorrect row count" , 3 , dr .getDataRowCount ());
392394
395+ // Store session ID for later use
396+ String sessionId = StringUtils .trimToNull (getUrlParam ("databaseId" ));
397+ Assert .assertNotNull ("Missing session ID on URL" , sessionId );
398+
393399 // Now ensure default tracks appear:
394400 beginAt ("/project/" + getContainerId () + "/begin.view" );
395401 _helper .clickNavPanelItemAndWait ("JBrowse Sessions:" , 1 );
@@ -398,6 +404,18 @@ private void testOutputFileProcessing() throws Exception
398404 waitAndClick (Locator .tagContainingText ("span" , "Show all regions in assembly" ).withClass ("MuiButton-label" ));
399405 waitForElement (Locator .tagWithText ("span" , "fakeData.gff" ).withClass ("MuiTypography-root" ));
400406 waitForElement (Locator .tagWithText ("span" , "fakeData.bed" ).withClass ("MuiTypography-root" ));
407+
408+ //Now test search:
409+ 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(...expectations...)
415+ //searchBox.sendKeys(Keys.ENTER);
416+
417+ //waitForElement()
418+
401419 }
402420
403421 public static <T > Collector <T , ?, T > toSingleton () {
0 commit comments