This commit is contained in:
Colin Megill
2021-06-29 17:50:13 -07:00
parent 08d2080e06
commit 4e227ddb36
3 changed files with 76172 additions and 4 deletions
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -148,9 +148,9 @@ describe.each([
await waitByClass("pop-1-geneset-expand");
await expect(page).toClick(getTestClass("pop-1-geneset-expand"));
const popOne = await waitByClass("histogram-gene-set-summary");
const popOneParent = popOne.getProperty("parentNode");
const popOneParent = await popOne.getProperty("parentNode");
await popOneParent.waitForFunction(
await page.waitForFunction(
(selector) => !document.querySelector(selector),
{},
getTestClass("gene-loading-spinner")
@@ -162,7 +162,7 @@ describe.each([
await expect(page).toClick(getTestClass("pop-2-geneset-expand"));
const popTwo = await waitByClass("histogram-gene-set-summary");
const popTwoParent = popTwo.getProperty("parentNode");
const popTwoParent = await popTwo.getProperty("parentNode");
await popTwoParent.waitForFunction(
(selector) => !document.querySelector(selector),
+1 -1
View File
@@ -12,7 +12,7 @@ export async function waitByID(testId, props = {}) {
}
export async function waitByClass(testClass, props = {}) {
await page.waitForSelector(`[data-testclass='${testClass}']`, props);
return page.waitForSelector(`[data-testclass='${testClass}']`, props);
}
export async function waitForAllByIds(testIds) {