Skip to content

Commit e670960

Browse files
author
Sebastian Benjamin
committed
Wait for canvas to load instead of "Loading..." messages to disappear
1 parent 3ee1181 commit e670960

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:localhost)"
5+
]
6+
}
7+
}

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)