Skip to content

Commit

Permalink
N21-1862 add data-testids (#3223)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBergCap authored May 3, 2024
1 parent 3fc2412 commit 1b6e439
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/modules/feature/course-sync/EndCourseSyncDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
</h2>
</template>
<template #content>
<WarningAlert class="mb-4">
<WarningAlert
class="mb-4"
data-testid="end-course-sync-dialog-warning-text"
>
{{ $t("feature-course-sync.EndCourseSyncDialog.alert") }}
</WarningAlert>
<p>
<p data-testid="end-course-sync-dialog-info-text">
{{
$t("feature-course-sync.EndCourseSyncDialog.description", {
courseName: courseName,
Expand Down
9 changes: 7 additions & 2 deletions src/modules/feature/course-sync/GroupSelectionDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<template #content>
<p class="text-md mt-2">
<p class="text-md mt-2" data-testid="group-dialog-info-text">
{{ $t("feature-course-sync.GroupSelectionDialog.text") }}
</p>
<VAutocomplete
Expand All @@ -30,9 +30,13 @@
hide-selected
clearable
variant="underlined"
data-testid="group-selection"
>
<template #append-item>
<div v-intersect="onGroupListIntersect" />
<div
v-intersect="onGroupListIntersect"
data-testid="group-selection-item"
/>
</template>
</VAutocomplete>
<WarningAlert
Expand All @@ -46,6 +50,7 @@
groupName: selectedGroup.name,
})
"
data-testid="no-teacher-warning-text"
/>
</WarningAlert>
</template>
Expand Down
7 changes: 6 additions & 1 deletion src/pages/rooms/RoomDetails.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
>
{{ roomData.title }}
</div>
<VChip v-if="roomData.isSynchronized" size="small" class="mt-1 ml-2">
<VChip
v-if="roomData.isSynchronized"
size="small"
class="mt-1 ml-2"
data-testid="synced-course-chip"
>
{{ $t("pages.rooms.headerSection.synchronized") }}
</VChip>
<VChip v-if="roomData.isArchived" size="small" class="mt-1 ml-2">
Expand Down

0 comments on commit 1b6e439

Please sign in to comment.