From 79ab34e3c02214bcfbd330cd00efcc340c4c9ce2 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 11 Dec 2024 15:34:39 +0100 Subject: [PATCH] another try to fix the tests Signed-off-by: Erik Jan de Wit --- .../admin-ui/cypress/e2e/partial_export_test.spec.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts b/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts index 1ce39b93b601..eb0292efaa04 100644 --- a/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts @@ -47,16 +47,13 @@ describe("Partial realm export", () => { it("Exports the realm", () => { modal.includeGroupsAndRolesSwitch().click({ force: true }); modal.includeClientsSwitch().click({ force: true }); - cy.intercept( - "POST", - "/admin/realms/Partial-export-test-realm/partial-export*", - ).as("export"); + cy.intercept("POST", `/admin/realms/${REALM_NAME}/partial-export*`).as( + "export", + ); modal.exportButton().click(); cy.wait("@export"); - cy.readFile( - Cypress.config("downloadsFolder") + "/realm-export.json", - ).should("exist"); + cy.readFile(Cypress.config("downloadsFolder") + "/realm-export.json"); modal.exportButton().should("not.exist"); }); });