Skip to content

Commit

Permalink
Merge pull request #15793 from CDCgov/experience/15612/re-re-reenable…
Browse files Browse the repository at this point in the history
…-file-download

testing re enabling file download
  • Loading branch information
etanb authored Sep 9, 2024
2 parents 9f27b0d + 805c0ee commit becb550
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,13 @@ test.describe(
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });
});

test.skip("downloads the file", async ({ dailyDataPage }) => {
await setDate(dailyDataPage.page, "#start-date", 14);
await setDate(dailyDataPage.page, "#end-date", 0);

await applyButton(dailyDataPage.page).click();
test("downloads the file", async ({ dailyDataPage, isMockDisabled }) => {
test.skip(!isMockDisabled, "Mocks are ENABLED, skipping 'downloads the file' test");

Check warning on line 377 in frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Build Frontend React

Unexpected use of the `.skip()` annotation

Check warning on line 377 in frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Build frontend

Unexpected use of the `.skip()` annotation

Check warning on line 377 in frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Release: Build Frontend (React)

Unexpected use of the `.skip()` annotation
// Sort by File available until, but they're in ASCENDING order
await dailyDataPage.page.getByRole("button", { name: "File available until" }).click();
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });
// Sort by File available until again, to get the absolute latest result
await dailyDataPage.page.getByRole("button", { name: "File available until" }).click();
await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" });

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

0 comments on commit becb550

Please sign in to comment.