Skip to content

Commit 68519c7

Browse files
authored
chore: update findable to 35.2.0 (#4510) (#4511)
1 parent 39bcfcf commit 68519c7

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

e2e/anvil/anvil-dataset.spec.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
BUTTON_TEXT_EXPORT,
55
BUTTON_TEXT_REQUEST_ACCESS,
66
BUTTON_TEXT_REQUEST_FILE_MANIFEST,
7+
BUTTON_TEXT_REQUEST_LINK,
78
CHIP_TEXT_ACCESS_GRANTED,
89
CHIP_TEXT_ACCESS_REQUIRED,
910
DatasetAccess,
@@ -106,16 +107,16 @@ describe("Dataset", () => {
106107
// Confirm file manifest export method is visible and click it.
107108
await clickLink(page, BUTTON_TEXT_REQUEST_FILE_MANIFEST);
108109

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

113-
// Ensure there are exactly two buttons.
114-
await expect(buttons).toHaveCount(2);
115+
// Ensure there is exactly one button.
116+
await expect(buttons).toHaveCount(1);
115117

116-
// Ensure both buttons are visible.
117-
await expect(buttons.nth(0)).toBeVisible();
118-
await expect(buttons.nth(1)).toBeVisible();
118+
// Ensure the button is visible.
119+
await expect(buttons).toBeVisible();
119120
});
120121

121122
test("displays download file manifest selected data", async ({ page }) => {

e2e/anvil/common/constants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const CHIP_TEXT_ACCESS_REQUIRED = "Required";
33
export const BUTTON_TEXT_ANALYZE_IN_TERRA = "Analyze in Terra";
44
export const BUTTON_TEXT_EXPORT = "Export";
55
export const BUTTON_TEXT_REQUEST_ACCESS = "Request Access";
6+
export const BUTTON_TEXT_REQUEST_LINK = "Request Link";
67
export const BUTTON_TEXT_REQUEST_FILE_MANIFEST = "Request File Manifest";
78

89
export type DatasetAccess =

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
3333
},
3434
"dependencies": {
35-
"@databiosphere/findable-ui": "^35.1.0",
35+
"@databiosphere/findable-ui": "^35.2.0",
3636
"@emotion/react": "^11.13.3",
3737
"@emotion/styled": "^11.13.0",
3838
"@mdx-js/loader": "^3.0.1",

0 commit comments

Comments
 (0)