Skip to content

Commit becb550

Browse files
authored
Merge pull request #15793 from CDCgov/experience/15612/re-re-reenable-file-download
testing re enabling file download
2 parents 9f27b0d + 805c0ee commit becb550

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,13 @@ test.describe(
373373
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });
374374
});
375375

376-
test.skip("downloads the file", async ({ dailyDataPage }) => {
377-
await setDate(dailyDataPage.page, "#start-date", 14);
378-
await setDate(dailyDataPage.page, "#end-date", 0);
379-
380-
await applyButton(dailyDataPage.page).click();
376+
test("downloads the file", async ({ dailyDataPage, isMockDisabled }) => {
377+
test.skip(!isMockDisabled, "Mocks are ENABLED, skipping 'downloads the file' test");
378+
// Sort by File available until, but they're in ASCENDING order
379+
await dailyDataPage.page.getByRole("button", { name: "File available until" }).click();
380+
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });
381+
// Sort by File available until again, to get the absolute latest result
382+
await dailyDataPage.page.getByRole("button", { name: "File available until" }).click();
381383
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });
382384

383385
const downloadProm = dailyDataPage.page.waitForEvent("download");

0 commit comments

Comments
 (0)