From 6adb4268ffb86f4d2c4bc7567ed0114862aff100 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 10 Dec 2024 10:29:42 -0300 Subject: [PATCH] Remplace data-testid --- src/components/common/VnForm.vue | 2 +- src/components/ui/VnConfirm.vue | 2 +- src/components/ui/VnSearchBar.vue | 2 +- src/composables/useNotify.js | 2 +- src/layouts/MainLayout.vue | 10 +++++----- src/pages/Account/AccountConfig.vue | 4 ++-- src/pages/Account/AddressDetails.vue | 12 ++++++------ src/pages/Account/AddressList.vue | 6 +++--- src/pages/Admin/ItemsView.vue | 4 ++-- src/pages/Admin/NewsDetails.vue | 6 +++--- src/pages/Admin/NewsView.vue | 6 +++--- src/pages/Admin/PhotosView.vue | 16 ++++++++-------- src/pages/Admin/UsersView.vue | 8 ++++---- src/pages/Ecomerce/BasketView.vue | 2 +- src/pages/Ecomerce/CatalogCard.vue | 10 +++++----- src/pages/Ecomerce/CatalogView.vue | 14 +++++++------- src/pages/Ecomerce/CheckoutView.vue | 12 ++++++------ src/pages/Ecomerce/OrdersView.vue | 6 +++--- src/pages/Ecomerce/PendingOrders.vue | 14 +++++--------- src/pages/Ecomerce/TicketDetails.vue | 2 +- src/pages/Login/LoginView.vue | 14 +++++++------- src/pages/Login/RecoverPassword.vue | 4 ++-- .../cypress/integration/admin/NewsView.spec.js | 2 +- .../cypress/integration/admin/PhotosView.spec.js | 4 ++-- .../integration/catalog/CatalogView.commands.js | 13 +++++-------- .../checkout/CheckoutStepper.commands.js | 4 ++-- .../integration/config/AccountConfig.commands.js | 2 +- .../integration/config/AccountConfig.spec.js | 4 ++-- .../integration/config/AddresList.spec.js | 6 +++--- .../integration/login/LoginView.commands.js | 9 +++------ .../cypress/integration/login/LoginView.spec.js | 2 +- src/test/cypress/reports/index.html | 2 +- src/test/cypress/support/commands.js | 2 +- 33 files changed, 99 insertions(+), 109 deletions(-) diff --git a/src/components/common/VnForm.vue b/src/components/common/VnForm.vue index cd1a329c..51219af9 100644 --- a/src/components/common/VnForm.vue +++ b/src/components/common/VnForm.vue @@ -240,7 +240,7 @@ defineExpose({ flat :disabled="!showBottomActions && !updatedColumns.length" @click="submit()" - data-testid="formDefaultSaveButton" + data-cy="formDefaultSaveButton" > {{ t('save') }} diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue index 40aa7eef..8e4b869d 100644 --- a/src/components/ui/VnConfirm.vue +++ b/src/components/ui/VnConfirm.vue @@ -91,7 +91,7 @@ async function confirm() { @click="confirm()" unelevated autofocus - data-testid="confirmDialogButton" + data-cy="confirmDialogButton" /> diff --git a/src/components/ui/VnSearchBar.vue b/src/components/ui/VnSearchBar.vue index 214a8cff..894ee7b8 100644 --- a/src/components/ui/VnSearchBar.vue +++ b/src/components/ui/VnSearchBar.vue @@ -76,7 +76,7 @@ onMounted(() => { is-outlined :clearable="false" class="searchbar" - data-testid="searchBar" + data-cy="searchBar" > diff --git a/src/pages/Account/AddressList.vue b/src/pages/Account/AddressList.vue index 47c2b7dc..a603715c 100644 --- a/src/pages/Account/AddressList.vue +++ b/src/pages/Account/AddressList.vue @@ -98,7 +98,7 @@ onMounted(async () => { @click="goToAddressDetails()" rounded no-caps - data-testid="newAddressBtn" + data-cy="newAddressBtn" > {{ t('addAddress') }} @@ -110,7 +110,7 @@ onMounted(async () => { class="rounded-borders shadow-1 shadow-transition" separator :rows="addresses" - data-testid="addressCardList" + data-cy="addressCardList" > { flat rounded @click.stop="goToAddressDetails(address.id)" - data-testid="editAddressBtn" + data-cy="editAddressBtn" > {{ t('editAddress') }} diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index 587e83cd..8fedd306 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -44,13 +44,13 @@ const onSearch = data => (items.value = data || []); empty-icon="refresh" :loading="loading" :rows="items" - data-testid="itemsViewList" + data-cy="itemsViewList" >