From ac63c9d3594c0cc3519db082411646d296a549d3 Mon Sep 17 00:00:00 2001 From: Jonah Paten Date: Sun, 14 Jul 2024 18:18:34 -0700 Subject: [PATCH] fix: shortened certain tests that would timeout (#4068) --- explorer/e2e/anvil/anvil-filters.spec.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/explorer/e2e/anvil/anvil-filters.spec.ts b/explorer/e2e/anvil/anvil-filters.spec.ts index 8e1c8c199..d91291dab 100644 --- a/explorer/e2e/anvil/anvil-filters.spec.ts +++ b/explorer/e2e/anvil/anvil-filters.spec.ts @@ -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, }) => { @@ -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]) ); });