Skip to content

Commit

Permalink
another try to fix the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Dec 11, 2024
1 parent 45a6b5c commit 79ab34e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit 79ab34e

Please sign in to comment.