From 6953e0e64ac3ca680be973e76ee50126b1a8bce1 Mon Sep 17 00:00:00 2001 From: Rob Wood Date: Thu, 5 Dec 2024 12:13:16 -0500 Subject: [PATCH] Add data-testid attributes (#784) * 780: Add data-testid attributes to some UI elements for future E2E tests * Use more consistent names for data-testids --- frontend/src/components/CalendarManagement.vue | 3 +++ frontend/src/components/CalendarMiniMonth.vue | 4 ++-- frontend/src/components/NavBar.vue | 8 +++++--- frontend/src/components/ScheduleCreation.vue | 18 +++++++++++++----- frontend/src/components/SettingsAccount.vue | 10 +++++++++- frontend/src/components/SettingsGeneral.vue | 5 +++-- frontend/src/components/TabBar.vue | 1 + .../bookingView/BookingViewSlotSelection.vue | 6 ++++-- frontend/src/elements/UserAvatar.vue | 1 + frontend/src/views/AppointmentsView.vue | 10 ++++++++-- frontend/src/views/HomeView.vue | 3 +++ frontend/src/views/SettingsView.vue | 1 + 12 files changed, 53 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/CalendarManagement.vue b/frontend/src/components/CalendarManagement.vue index 7959a4bb9..9e606eb56 100644 --- a/frontend/src/components/CalendarManagement.vue +++ b/frontend/src/components/CalendarManagement.vue @@ -61,6 +61,7 @@ const filteredCalendars = computed(() => props.calendars.filter((calendar: Calen text-xs text-white disabled:scale-100 disabled:opacity-50 disabled:shadow-none " :title="t('label.connect')" + data-testid="settings-calendar-connect-calendar-btn" > {{ t('label.connectCalendar') }} @@ -74,6 +75,7 @@ const filteredCalendars = computed(() => props.calendars.filter((calendar: Calen text-xs text-white disabled:scale-100 disabled:opacity-50 disabled:shadow-none " :title="t('label.edit')" + data-testid="settings-calendar-edit-calendar-btn" > {{ t('label.editCalendar') }} @@ -84,6 +86,7 @@ const filteredCalendars = computed(() => props.calendars.filter((calendar: Calen :disabled="loading" @click="emit('remove', cal.id)" :title="t('label.remove')" + data-testid="settings-calendar-remove-calendar-btn" > diff --git a/frontend/src/components/CalendarMiniMonth.vue b/frontend/src/components/CalendarMiniMonth.vue index 5d6c0f675..f69d31a51 100644 --- a/frontend/src/components/CalendarMiniMonth.vue +++ b/frontend/src/components/CalendarMiniMonth.vue @@ -1,13 +1,13 @@