Skip to content

Commit 18bbf22

Browse files
committed
Improve JBrowseTest
1 parent fb3d11c commit 18bbf22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,13 +524,15 @@ public List<String> getAssociatedModules()
524524

525525
private void testFullTextSearch() throws Exception
526526
{
527-
goToProjectHome();
528527
if (!SequenceTest.isExternalPipelineEnabled(getProjectName()))
529528
{
530529
log("JBrowseTest.testFullTextSearch() requires external tools, including DISCVRSeq.jar, skipping");
531530
return;
532531
}
533532

533+
goToProjectHome();
534+
waitForElement(Locator.tagWithText("a", "View JBrowse Sessions"));
535+
534536
SequenceTest.addOutputFile(this, _mGapTestVcf, SequenceTest.TEST_GENOME_NAME, "TestVCF", "VCF File", "This is an output file to test VCF full-text search", false);
535537

536538
//create session w/ some of these, verify
@@ -645,7 +647,7 @@ private void testOutputFileProcessing() throws Exception
645647
Ext4FieldRef.getForLabel(this, "Description").setValue("This is the first session with BAM");
646648
waitAndClick(Ext4Helper.Locators.ext4ButtonEnabled("Submit"));
647649

648-
Window window = new Window.WindowFinder(getDriver()).withTitle("Create New Workbook or Add To Existing?").waitFor();
650+
Window<?> window = new Window.WindowFinder(getDriver()).withTitle("Create New Workbook or Add To Existing?").waitFor();
649651
window.clickButton("Submit", 0);
650652

651653
window = new Window.WindowFinder(getDriver()).withTitle("Success").waitFor();
@@ -744,7 +746,7 @@ private void testSearch(String sessionId) throws Exception
744746

745747
waitForElement(Locator.tagWithText("p", "No session Id provided. Please have your site admin use the customize icon to set the session ID for this webpart."));
746748
portalHelper.clickWebpartMenuItem("JBrowse Search", false, "Customize");
747-
Window window = new Window.WindowFinder(getDriver()).withTitle("Customize Webpart").waitFor();
749+
Window<?> window = new Window.WindowFinder(getDriver()).withTitle("Customize Webpart").waitFor();
748750
Ext4FieldRef.waitForField(this, "Target JBrowse DB");
749751
Ext4FieldRef.getForLabel(this, "Target JBrowse DB").setValue(sessionId);
750752
window.clickButton("Submit", WAIT_FOR_PAGE);

0 commit comments

Comments
 (0)