mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 06:28:11 +08:00
snapshot
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -148,9 +148,9 @@ describe.each([
|
|||||||
await waitByClass("pop-1-geneset-expand");
|
await waitByClass("pop-1-geneset-expand");
|
||||||
await expect(page).toClick(getTestClass("pop-1-geneset-expand"));
|
await expect(page).toClick(getTestClass("pop-1-geneset-expand"));
|
||||||
const popOne = await waitByClass("histogram-gene-set-summary");
|
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),
|
(selector) => !document.querySelector(selector),
|
||||||
{},
|
{},
|
||||||
getTestClass("gene-loading-spinner")
|
getTestClass("gene-loading-spinner")
|
||||||
@@ -162,7 +162,7 @@ describe.each([
|
|||||||
await expect(page).toClick(getTestClass("pop-2-geneset-expand"));
|
await expect(page).toClick(getTestClass("pop-2-geneset-expand"));
|
||||||
|
|
||||||
const popTwo = await waitByClass("histogram-gene-set-summary");
|
const popTwo = await waitByClass("histogram-gene-set-summary");
|
||||||
const popTwoParent = popTwo.getProperty("parentNode");
|
const popTwoParent = await popTwo.getProperty("parentNode");
|
||||||
|
|
||||||
await popTwoParent.waitForFunction(
|
await popTwoParent.waitForFunction(
|
||||||
(selector) => !document.querySelector(selector),
|
(selector) => !document.querySelector(selector),
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export async function waitByID(testId, props = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function waitByClass(testClass, 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) {
|
export async function waitForAllByIds(testIds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user