Skip to content

Commit 9375638

Browse files
author
hextraza
committed
Test stub
1 parent 137958d commit 9375638

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.labkey.test.tests.external.labModules;
1717

18+
import org.apache.commons.lang3.StringUtils;
1819
import org.junit.Assert;
1920
import org.junit.Test;
2021
import org.junit.experimental.categories.Category;
@@ -38,6 +39,7 @@
3839
import org.labkey.test.util.ext4cmp.Ext4FieldRef;
3940
import org.labkey.test.util.external.labModules.LabModuleHelper;
4041
import org.openqa.selenium.By;
42+
import org.openqa.selenium.Keys;
4143
import org.openqa.selenium.WebElement;
4244
import 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

Comments
 (0)