From da6a0bf0ef257ae532fdbc1bfd1b54367d456463 Mon Sep 17 00:00:00 2001 From: rwood-moz Date: Tue, 3 Dec 2024 11:04:24 -0500 Subject: [PATCH] 780: Add data-testid attributes to some UI elements for future E2E tests --- 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 +++-- .../bookingView/BookingViewSlotSelection.vue | 6 ++++-- frontend/src/elements/UserAvatar.vue | 1 + frontend/src/views/AppointmentsView.vue | 11 +++++++++-- frontend/src/views/HomeView.vue | 1 + frontend/src/views/SettingsView.vue | 1 + 11 files changed, 51 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/CalendarManagement.vue b/frontend/src/components/CalendarManagement.vue index 7959a4bb9..36740a9d8 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="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="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="remove-calendar-btn" > diff --git a/frontend/src/components/CalendarMiniMonth.vue b/frontend/src/components/CalendarMiniMonth.vue index 5d6c0f675..ee77304d2 100644 --- a/frontend/src/components/CalendarMiniMonth.vue +++ b/frontend/src/components/CalendarMiniMonth.vue @@ -1,13 +1,13 @@