Skip to content

Commit

Permalink
test: dataset export method with required access #4102
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic committed Jan 30, 2025
1 parent 7d0b1a8 commit 479ab18
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions e2e/anvil/anvil-dataset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ describe.parallel("Dataset", () => {
await expect(buttons.nth(1)).toBeVisible();
});

test("displays login to export method", async ({ page }) => {
await goToDataset(page, CHIP_TEXT_ACCESS_REQUIRED);

// Navigate to the choose export method page.
const currentUrl = page.url();
await page.goto(`${currentUrl}/export`);

// Confirm the login alert is displayed.
await expect(
page.locator(
`${MUI_ALERT_ROOT}:has-text("To export this dataset, please sign in and, if necessary, request access.")`
)
).toBeVisible();
});

test("displays login to download file manifest", async ({ page }) => {
await goToDataset(page, CHIP_TEXT_ACCESS_REQUIRED);

Expand Down

0 comments on commit 479ab18

Please sign in to comment.