diff --git a/src/components/common/VnForm.vue b/src/components/common/VnForm.vue index bb78317c..cd1a329c 100644 --- a/src/components/common/VnForm.vue +++ b/src/components/common/VnForm.vue @@ -240,6 +240,7 @@ defineExpose({ flat :disabled="!showBottomActions && !updatedColumns.length" @click="submit()" + data-testid="formDefaultSaveButton" > {{ t('save') }} diff --git a/src/pages/Admin/NewsDetails.vue b/src/pages/Admin/NewsDetails.vue index 6d2cf784..d9b04c98 100644 --- a/src/pages/Admin/NewsDetails.vue +++ b/src/pages/Admin/NewsDetails.vue @@ -106,6 +106,7 @@ onMounted(async () => { v-model="data.title" :label="t('title')" :clearable="false" + data-testid="newsTitleInput" />
{ option-value="name" :options="newsTags" class="col" + data-testid="newsTagSelect" />
getNews()); :to="{ name: 'adminNewsDetails' }" rounded no-caps + data-testid="addNewBtn" > {{ t('addNew') }} @@ -74,6 +75,7 @@ onMounted(async () => getNews()); v-for="(newsItem, index) in news" :key="index" :to="{ name: 'adminNewsDetails', params: { id: newsItem.id } }" + data-testid="newsCard" >