mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 10:08:12 +08:00
snapshot parentInnerhtml
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -147,8 +147,6 @@ describe.each([
|
|||||||
await clickOn(`diffexp-button`);
|
await clickOn(`diffexp-button`);
|
||||||
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 popOneParent = (await popOne.$x(".."))[0];
|
|
||||||
|
|
||||||
await page.waitForFunction(
|
await page.waitForFunction(
|
||||||
(selector) => !document.querySelector(selector),
|
(selector) => !document.querySelector(selector),
|
||||||
@@ -156,21 +154,28 @@ describe.each([
|
|||||||
getTestClass("gene-loading-spinner")
|
getTestClass("gene-loading-spinner")
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(popOneParent).toMatchSnapshot();
|
const popOneParentHTML = await page.$eval(
|
||||||
|
getTestClass("histogram-gene-set-summary"),
|
||||||
|
(el) => el.parentElement.innerHTML
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(popOneParentHTML).toMatchSnapshot();
|
||||||
|
|
||||||
await expect(page).toClick(getTestClass("pop-1-geneset-expand"));
|
await expect(page).toClick(getTestClass("pop-1-geneset-expand"));
|
||||||
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 popTwoParent = (await popTwo.$x(".."))[0];
|
|
||||||
|
|
||||||
await page.waitForFunction(
|
await page.waitForFunction(
|
||||||
(selector) => !document.querySelector(selector),
|
(selector) => !document.querySelector(selector),
|
||||||
{},
|
{},
|
||||||
getTestClass("gene-loading-spinner")
|
getTestClass("gene-loading-spinner")
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(popTwoParent).toMatchSnapshot();
|
const popTwoParentHTML = await page.$eval(
|
||||||
|
getTestClass("histogram-gene-set-summary"),
|
||||||
|
(el) => el.parentElement.innerHTML
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(popTwoParentHTML).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
test("create a new geneset", async () => {
|
test("create a new geneset", async () => {
|
||||||
if (config.withSubset) return;
|
if (config.withSubset) return;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const StillLoading = ({ zebra, displayName }) => {
|
|||||||
*/
|
*/
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
data-testclass="gene-loading-spinner"
|
||||||
style={{
|
style={{
|
||||||
padding: globals.leftSidebarSectionPadding,
|
padding: globals.leftSidebarSectionPadding,
|
||||||
backgroundColor: zebra ? globals.lightestGrey : "white",
|
backgroundColor: zebra ? globals.lightestGrey : "white",
|
||||||
|
|||||||
Reference in New Issue
Block a user