Skip to content

Commit defa661

Browse files
hextrazaSebastian Benjamin
andauthored
Wait for canvas to load instead of "Loading..." messages to disappear (#382)
Co-authored-by: Sebastian Benjamin <sebastiancbenjamin@gmail.com>
1 parent 4e2e131 commit defa661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public static void waitForJBrowseToLoad(BaseWebDriverTest test)
165165
test.waitForElement(Locator.tagWithAttribute("button", "title", "close this track").notHidden(), WebDriverWrapper.WAIT_FOR_PAGE);
166166
test.waitForElement(Locator.tagWithClassContaining("button", "MuiButtonBase-root").notHidden(), WebDriverWrapper.WAIT_FOR_PAGE); //this is the icon from the track label
167167

168-
test.waitForElementToDisappear(Locator.tagWithText("div", "Loading"), WebDriverWrapper.WAIT_FOR_PAGE); //track data
169-
test.waitForElementToDisappear(Locator.tagWithText("p", "Loading").withClass("MuiTypography-root"), WebDriverWrapper.WAIT_FOR_PAGE); // the track data
168+
Locator.XPathLocator trackContainer = Locator.tagWithAttributeContaining("div", "data-testid", "trackRenderingContainer-");
169+
test.waitForElement(trackContainer.descendant(Locator.tagWithAttributeContaining("canvas", "data-testid", "_done")), WebDriverWrapper.WAIT_FOR_PAGE); //track data
170170
}
171171

172172
public static long getTotalVariantFeatures(BaseWebDriverTest test)

0 commit comments

Comments
 (0)