Skip to content

Commit 5b99452

Browse files
test: dataset export method with required access #4102
1 parent 2aabb18 commit 5b99452

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

e2e/anvil/anvil-dataset.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@ describe.parallel("Dataset", () => {
7676
await expect(buttons.nth(1)).toBeVisible();
7777
});
7878

79+
test("displays login to export method", async ({ page }) => {
80+
await goToDataset(page, CHIP_TEXT_ACCESS_REQUIRED);
81+
82+
// Navigate to the choose export method page.
83+
const currentUrl = page.url();
84+
await page.goto(`${currentUrl}/export`);
85+
86+
// Confirm the login alert is displayed.
87+
await expect(
88+
page.locator(
89+
`${MUI_ALERT_ROOT}:has-text("To export this dataset, please sign in and, if necessary, request access.")`
90+
)
91+
).toBeVisible();
92+
});
93+
7994
test("displays login to download file manifest", async ({ page }) => {
8095
await goToDataset(page, CHIP_TEXT_ACCESS_REQUIRED);
8196

0 commit comments

Comments
 (0)