Skip to content

Commit 8370132

Browse files
test: azul const update #4102
1 parent ba388fb commit 8370132

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

e2e/anvil/anvil-dataset.spec.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ import {
1717
} from "../features/common/constants";
1818
import { ROUTE_MANIFEST_DOWNLOAD } from "../../site-config/anvil-cmg/dev/export/constants";
1919
import { ANVIL_CMG_CATEGORY_KEY } from "../../site-config/anvil-cmg/category";
20-
import {
21-
APIEndpoints,
22-
AZUL_PARAM,
23-
} from "@databiosphere/findable-ui/lib/apis/azul/common/entities";
2420

2521
const { describe } = test;
2622

27-
describe.parallel("Dataset", () => {
23+
const API_ENDPOINT_SUMMARY = "summary";
24+
25+
describe("Dataset", () => {
2826
test.beforeEach(async ({ page }) => {
2927
await goToDatasetsList(page);
3028
});
@@ -81,7 +79,7 @@ describe.parallel("Dataset", () => {
8179
// Wait for the summary request once the export button is clicked.
8280
const [request] = await Promise.all([
8381
page.waitForRequest((request) =>
84-
request.url().includes(APIEndpoints.SUMMARY)
82+
request.url().includes(API_ENDPOINT_SUMMARY)
8583
),
8684
clickLink(page, BUTTON_TEXT_EXPORT),
8785
]);
@@ -135,7 +133,7 @@ describe.parallel("Dataset", () => {
135133
// Wait for the summary request once the file manifest button is clicked.
136134
const [request] = await Promise.all([
137135
page.waitForRequest((request) =>
138-
request.url().includes(APIEndpoints.SUMMARY)
136+
request.url().includes(API_ENDPOINT_SUMMARY)
139137
),
140138
clickLink(page, BUTTON_TEXT_REQUEST_FILE_MANIFEST),
141139
]);
@@ -220,7 +218,7 @@ async function goToDataset(page: Page, access: DatasetAccess): Promise<void> {
220218
function verifySummaryRequest(request: Request): void {
221219
// Grab the filters param from the request.
222220
const url = new URL(request.url());
223-
const paramValue = url.searchParams.get(AZUL_PARAM.FILTERS) || "";
221+
const paramValue = url.searchParams.get("filters") || "";
224222

225223
// Validate dataset ID is in the filters query parameter.
226224
expect(paramValue).toContain(ANVIL_CMG_CATEGORY_KEY.DATASET_ID);

0 commit comments

Comments
 (0)