Skip to content

Commit

Permalink
fix: shortened certain tests that would timeout (#4068)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten committed Jul 15, 2024
1 parent 8bf35bf commit ac63c9d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions explorer/e2e/anvil/anvil-filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import { anvilFilters, anvilTabs, anvilTabTestOrder } from "./anvil-tabs";

test.describe.configure({ mode: "parallel", timeout: 60 * 1000 });
const filter_index_list = [3, 4, 5, 7, 6, 2];

const filter_index_list = [3, 4, 5, 10, 6, 2];
const filter_index_list_short = [1, 10, 3];
test("Check that all filters exist on the Datasets tab and are clickable", async ({
page,
}) => {
Expand Down Expand Up @@ -108,32 +108,35 @@ test("Check that filter menu counts match actual counts on the Activities tab",
);
});

test.setTimeout(120000);
test("Check that the blue filter bubbles match the selected filter for an arbitrary filter on the Files tab", async ({
page,
}) => {
await testFilterBubbles(
page,
anvilTabs.files,
filter_index_list.map((x) => anvilFilters[x])
filter_index_list_short.map((x) => anvilFilters[x])
);
});

test.setTimeout(120000);
test("Check that the blue filter bubbles match the selected filter for an arbitrary filter on the BioSamples tab", async ({
page,
}) => {
await testFilterBubbles(
page,
anvilTabs.biosamples,
filter_index_list.map((x) => anvilFilters[x])
filter_index_list_short.map((x) => anvilFilters[x])
);
});

test.setTimeout(120000);
test("Check that the clear all button functions on the files tab", async ({
page,
}) => {
await testClearAll(
page,
anvilTabs.files,
filter_index_list.map((x) => anvilFilters[x])
filter_index_list_short.map((x) => anvilFilters[x])
);
});

0 comments on commit ac63c9d

Please sign in to comment.