Skip to content

Commit ab00998

Browse files
authored
Attempt to fix test intermittent failures (#112)
* Attempt to fix test intermittent failures
1 parent b401bc8 commit ab00998

File tree

2 files changed

+133
-88
lines changed

2 files changed

+133
-88
lines changed

jbrowse/package-lock.json

Lines changed: 128 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
@@ -225,11 +225,13 @@ private By getVariantWithinTrack(String trackId, String variantText, boolean wai
225225
waitForElement(l);
226226
}
227227

228-
// Not ideal, but this might fix intermittent failures due to loading
229-
sleep(100);
228+
waitForElementToDisappear(Locator.tagWithText("p", "Loading"));
229+
sleep(250);
230230

231231
return By.xpath(l.toXpath());
232-
} catch(Exception e) {
232+
}
233+
catch(Exception e)
234+
{
233235
return null;
234236
}
235237
}

0 commit comments

Comments
 (0)