From 5b0c27b6dafb6ab6007339214c1d22d79e4b6f5d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 18 Oct 2023 15:19:11 +0200 Subject: fix(settings): Stablize user list cypress tests * Use common `data-testid` to identify elements rather than to depend on internal classes or properties * Force clean the state for the user tests * Move leftover acceptance tests for users from drone to cypress Signed-off-by: Ferdinand Thiessen --- apps/settings/src/components/UserList.vue | 2 +- .../src/components/Users/UserListHeader.vue | 12 ++++++ apps/settings/src/components/Users/UserRow.vue | 50 ++++++++++++++-------- .../src/components/Users/UserRowActions.vue | 3 +- 4 files changed, 45 insertions(+), 22 deletions(-) (limited to 'apps/settings/src') diff --git a/apps/settings/src/components/UserList.vue b/apps/settings/src/components/UserList.vue index 07e663d7912..5c7e9ba4dda 100644 --- a/apps/settings/src/components/UserList.vue +++ b/apps/settings/src/components/UserList.vue @@ -45,7 +45,7 @@ :data-component="UserRow" :data-sources="filteredUsers" data-key="id" - data-test-id="userList" + data-cy-user-list :item-height="rowHeight" :style="style" :extra-props="{ diff --git a/apps/settings/src/components/Users/UserListHeader.vue b/apps/settings/src/components/Users/UserListHeader.vue index 4ee0637d16b..e314bcb6a73 100644 --- a/apps/settings/src/components/Users/UserListHeader.vue +++ b/apps/settings/src/components/Users/UserListHeader.vue @@ -23,12 +23,14 @@