From e9ea38a8136d02a2e9db4e53a911d6e58b875b49 Mon Sep 17 00:00:00 2001 From: Igor Richter <93926487+IgorCapCoder@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:15:20 +0100 Subject: [PATCH] N21-1602 fix link (#2960) * fix link and test --- src/components/organisms/administration/AuthSystems.unit.js | 4 ++-- src/components/organisms/administration/AuthSystems.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/organisms/administration/AuthSystems.unit.js b/src/components/organisms/administration/AuthSystems.unit.js index e0638f18af..b61586b18d 100644 --- a/src/components/organisms/administration/AuthSystems.unit.js +++ b/src/components/organisms/administration/AuthSystems.unit.js @@ -275,7 +275,7 @@ describe("AuthSystems", () => { // { _id: "3", type: "ldap", ldapConfig: { provider: "general" } } expect( tableCell.wrappers[8].findComponent("routerlink-stub").props("to") - ).toEqual("`/administration/ldap/config?id=${system._id}`"); + ).toEqual("/administration/ldap/config?id=3"); }); it("should display system edit button and redirect to correct config page ", () => { @@ -309,7 +309,7 @@ describe("AuthSystems", () => { // { _id: "3", type: "ldap", ldapConfig: { provider: "general" } } expect( tableCell.wrappers[8].findComponent("routerlink-stub").props("to") - ).toEqual("`/administration/ldap/config?id=${system._id}`"); + ).toEqual("/administration/ldap/config?id=3"); }); it("should NOT display the dialog", async () => { diff --git a/src/components/organisms/administration/AuthSystems.vue b/src/components/organisms/administration/AuthSystems.vue index 862cf97ed7..41d1b6dddb 100644 --- a/src/components/organisms/administration/AuthSystems.vue +++ b/src/components/organisms/administration/AuthSystems.vue @@ -219,7 +219,7 @@ export default { ) { return `/administration/school-settings/provisioning-options?systemId=${system._id}`; } - return "`/administration/ldap/config?id=${system._id}`"; + return `/administration/ldap/config?id=${system._id}`; }, openConfirmDeleteDialog(systemId) { this.confirmDeleteDialog = {