Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions e2e/anvil/anvil-dataset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
BUTTON_TEXT_EXPORT,
BUTTON_TEXT_REQUEST_ACCESS,
BUTTON_TEXT_REQUEST_FILE_MANIFEST,
BUTTON_TEXT_REQUEST_LINK,
CHIP_TEXT_ACCESS_GRANTED,
CHIP_TEXT_ACCESS_REQUIRED,
DatasetAccess,
Expand Down Expand Up @@ -106,16 +107,16 @@ describe("Dataset", () => {
// Confirm file manifest export method is visible and click it.
await clickLink(page, BUTTON_TEXT_REQUEST_FILE_MANIFEST);

// Confirm the file manifest page is loaded: check there are two buttons
// (one for download, one for copy to clipboard).
const buttons = page.locator(`${MUI_CLASSES.BUTTON_GROUP} button`);
// Confirm the file manifest page is loaded: check there is one button to request the manifest.
const buttons = page.locator(`${MUI_CLASSES.BUTTON}`, {
hasText: BUTTON_TEXT_REQUEST_LINK,
});

// Ensure there are exactly two buttons.
await expect(buttons).toHaveCount(2);
// Ensure there is exactly one button.
await expect(buttons).toHaveCount(1);

// Ensure both buttons are visible.
await expect(buttons.nth(0)).toBeVisible();
await expect(buttons.nth(1)).toBeVisible();
// Ensure the button is visible.
await expect(buttons).toBeVisible();
});

test("displays download file manifest selected data", async ({ page }) => {
Expand Down
1 change: 1 addition & 0 deletions e2e/anvil/common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export const CHIP_TEXT_ACCESS_REQUIRED = "Required";
export const BUTTON_TEXT_ANALYZE_IN_TERRA = "Analyze in Terra";
export const BUTTON_TEXT_EXPORT = "Export";
export const BUTTON_TEXT_REQUEST_ACCESS = "Request Access";
export const BUTTON_TEXT_REQUEST_LINK = "Request Link";
export const BUTTON_TEXT_REQUEST_FILE_MANIFEST = "Request File Manifest";

export type DatasetAccess =
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
},
"dependencies": {
"@databiosphere/findable-ui": "^35.1.0",
"@databiosphere/findable-ui": "^35.2.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mdx-js/loader": "^3.0.1",
Expand Down
Loading