mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 17:58:12 +08:00
new snapshots
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -13,6 +13,7 @@ import {
|
|||||||
getTestId,
|
getTestId,
|
||||||
getTestClass,
|
getTestClass,
|
||||||
getAllByClass,
|
getAllByClass,
|
||||||
|
getOneElementInnerHTML,
|
||||||
} from "./puppeteerUtils";
|
} from "./puppeteerUtils";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -155,14 +156,11 @@ describe.each([
|
|||||||
getTestClass("gene-loading-spinner")
|
getTestClass("gene-loading-spinner")
|
||||||
);
|
);
|
||||||
|
|
||||||
const popOneParentHTML = await page.$eval(
|
let genesHTML = await getOneElementInnerHTML(
|
||||||
getTestClass("histogram-gene-set-summary"),
|
getTestClass("gene-set-genes")
|
||||||
(el) => el.parentElement.innerHTML
|
|
||||||
);
|
);
|
||||||
|
|
||||||
for (let i = 0; i < diffexpPop1Genes.length; i += 1) {
|
expect(genesHTML).toMatchSnapshot();
|
||||||
expect(popOneParentHTML).toContain(diffexpPop1Genes[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
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"));
|
||||||
@@ -173,14 +171,9 @@ describe.each([
|
|||||||
getTestClass("gene-loading-spinner")
|
getTestClass("gene-loading-spinner")
|
||||||
);
|
);
|
||||||
|
|
||||||
const popTwoParentHTML = await page.$eval(
|
genesHTML = await getOneElementInnerHTML(getTestClass("gene-set-genes"));
|
||||||
getTestClass("histogram-gene-set-summary"),
|
|
||||||
(el) => el.parentElement.innerHTML
|
|
||||||
);
|
|
||||||
|
|
||||||
for (let i = 0; i < diffexpPop1Genes.length; i += 1) {
|
expect(genesHTML).toMatchSnapshot();
|
||||||
expect(popTwoParentHTML).toContain(diffexpPop2Genes[i]);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
test("create a new geneset", async () => {
|
test("create a new geneset", async () => {
|
||||||
if (config.withSubset) return;
|
if (config.withSubset) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user