From 97481c766be63a51d62b12cff591b4711137e518 Mon Sep 17 00:00:00 2001 From: Jan Ackermann Date: Thu, 1 Feb 2024 13:48:42 +0100 Subject: [PATCH] Adjust multiple tests --- .../components/Groups/SideBar/EditPanel.vue | 34 ++++- .../src/views/Groups.vue | 34 +---- .../Groups/CreateGroupModal.spec.ts | 9 +- .../unit/components/Groups/GroupsList.spec.ts | 72 +++++++-- .../Groups/SideBar/EditPanel.spec.ts | 44 +++++- .../unit/components/Spaces/SpacesList.spec.ts | 59 ++++++-- .../__snapshots__/SpacesList.spec.ts.snap | 28 +++- .../components/Users/AddToGroupsModal.spec.ts | 8 +- .../components/Users/CreateUserModal.spec.ts | 5 +- .../unit/components/Users/LoginModal.spec.ts | 8 +- .../Users/RemoveFromGroupsModal.spec.ts | 8 +- .../unit/components/Users/UsersList.spec.ts | 86 ++++++++--- .../groups/useGroupActionsDelete.spec.ts | 7 +- .../users/useUserActionsDelete.spec.ts | 11 +- .../tests/unit/views/Groups.spec.ts | 65 +++----- .../tests/unit/views/Spaces.spec.ts | 78 ++++------ .../tests/unit/views/Users.spec.ts | 143 ++---------------- .../views/__snapshots__/Spaces.spec.ts.snap | 2 +- .../views/__snapshots__/Users.spec.ts.snap | 86 +---------- packages/web-test-helpers/src/mocks/pinia.ts | 22 ++- 20 files changed, 391 insertions(+), 418 deletions(-) diff --git a/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue b/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue index 54a5b480aa2..221e7a36ec1 100644 --- a/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue +++ b/packages/web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue @@ -17,7 +17,7 @@ :compare-object="editGroup" :confirm-button-disabled="invalidFormData" @revert="revertChanges" - @confirm="$emit('confirm', editGroup)" + @confirm="onEditGroup(editGroup)" > @@ -25,9 +25,11 @@