remove async from describe blocks (#805)

This commit is contained in:
Charlotte Weaver
2019-06-03 14:59:16 -07:00
committed by GitHub
parent 3152de4b7f
commit 1d6bb032a3
+9 -9
View File
@@ -54,14 +54,14 @@ afterAll(() => {
} }
}); });
describe("did launch", async () => { describe("did launch", () => {
test("page launched", async () => { test("page launched", async () => {
let el = await utils.getOneElementInnerHTML("[data-testid='header']"); let el = await utils.getOneElementInnerHTML("[data-testid='header']");
expect(el).toBe(data.title); expect(el).toBe(data.title);
}); });
}); });
describe("metadata loads", async () => { describe("metadata loads", () => {
test("categories and values from dataset appear", async () => { test("categories and values from dataset appear", async () => {
for (const label in data.categorical) { for (const label in data.categorical) {
await utils.waitByID(`category-${label}`); await utils.waitByID(`category-${label}`);
@@ -87,7 +87,7 @@ describe("metadata loads", async () => {
}); });
}); });
describe("cell selection", async () => { describe("cell selection", () => {
test("selects all cells cellset 1", async () => { test("selects all cells cellset 1", async () => {
const cellCount = await cxgActions.cellSet(1); const cellCount = await cxgActions.cellSet(1);
expect(cellCount).toBe(data.dataframe.nObs); expect(cellCount).toBe(data.dataframe.nObs);
@@ -138,7 +138,7 @@ describe("cell selection", async () => {
}); });
}); });
describe("gene entry", async () => { describe("gene entry", () => {
test("search for single gene", async () => { test("search for single gene", async () => {
// blueprint's typeahead is treating typing weird, clicking & waiting first solves this // blueprint's typeahead is treating typing weird, clicking & waiting first solves this
await utils.typeInto("gene-search", data.genes.search); await utils.typeInto("gene-search", data.genes.search);
@@ -161,7 +161,7 @@ describe("gene entry", async () => {
}); });
}); });
describe("diffexp", async () => { describe("diffexp", () => {
test("selects cells, saves them and performs diffexp", async () => { test("selects cells, saves them and performs diffexp", async () => {
for (const select of data.diffexp.cellset1) { for (const select of data.diffexp.cellset1) {
if (select.kind === "categorical") { if (select.kind === "categorical") {
@@ -183,7 +183,7 @@ describe("diffexp", async () => {
}); });
}); });
describe("subset/reset", async () => { describe("subset/reset", () => {
test("subset - cell count matches", async () => { test("subset - cell count matches", async () => {
for (const select of data.subset.cellset1) { for (const select of data.subset.cellset1) {
if (select.kind === "categorical") { if (select.kind === "categorical") {
@@ -257,7 +257,7 @@ describe("subset/reset", async () => {
}); });
}); });
describe("scatter plot", async () => { describe("scatter plot", () => {
test("scatter plot appears", async () => { test("scatter plot appears", async () => {
await cxgActions.reset(); await cxgActions.reset();
const testGenes = data.scatter.genes; const testGenes = data.scatter.genes;
@@ -270,7 +270,7 @@ describe("scatter plot", async () => {
}); });
}); });
describe("clipping", async () => { describe("clipping", () => {
test("clip continuous", async () => { test("clip continuous", async () => {
await cxgActions.clip(data.clip.min, data.clip.max); await cxgActions.clip(data.clip.min, data.clip.max);
const histId = `histogram-${data.clip.metadata}-plot-brush`; const histId = `histogram-${data.clip.metadata}-plot-brush`;
@@ -300,7 +300,7 @@ describe("clipping", async () => {
}); });
// interact with UI elements just that they do not break // interact with UI elements just that they do not break
describe("ui elements don't error", async () => { describe("ui elements don't error", () => {
test("color by", async () => { test("color by", async () => {
for (const label in data.categorical) { for (const label in data.categorical) {
await utils.clickOn(`colorby-${label}`); await utils.clickOn(`colorby-${label}`);