From 8e411125bfbc3d2fe4541b2e977d656d35427567 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 20 Nov 2024 18:58:08 -0300 Subject: [PATCH] test: refs #8162 more tests and change data-testid for data-cy --- src/components/CrudModel.vue | 2 +- src/components/VnTable/VnTable.vue | 2 +- src/components/common/VnSmsDialog.vue | 4 +- src/components/ui/VnConfirm.vue | 1 - src/components/ui/VnSearchbar.vue | 2 +- src/pages/Claim/Card/ClaimDescriptorMenu.vue | 2 +- src/pages/Ticket/Card/TicketDescriptor.vue | 2 +- src/pages/Ticket/Card/TicketEditMana.vue | 2 +- src/pages/Ticket/Card/TicketNotes.vue | 8 +- src/pages/Ticket/Card/TicketSale.vue | 17 ++-- .../Ticket/Card/TicketSaleMoreActions.vue | 30 ++++--- src/pages/Ticket/Card/TicketSummary.vue | 2 +- src/pages/Ticket/Card/TicketTransfer.vue | 2 +- src/pages/Ticket/Card/TicketTransferForm.vue | 3 + src/pages/Ticket/TicketList.vue | 4 +- .../integration/ticket/ticketNotes.spec.js | 6 +- .../integration/ticket/ticketSale.spec.js | 78 ++++++++++++++++++- test/cypress/support/commands.js | 2 +- 18 files changed, 130 insertions(+), 39 deletions(-) diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index ee7caecc4..5eba97dc8 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -394,7 +394,7 @@ watch(formUrl, async () => { @click="onSubmit" :disable="!hasChanges" :title="t('globals.save')" - data-testid="crudModelDefaultSaveBtn" + data-cy="crudModelDefaultSaveBtn" /> diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 99a9a6801..1213f61c5 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -737,7 +737,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { fab icon="add" shortcut="+" - data-testid="vnTableCreateBtn" + data-cy="vnTableCreateBtn" /> {{ createForm?.title }} diff --git a/src/components/common/VnSmsDialog.vue b/src/components/common/VnSmsDialog.vue index dbe16f57b..8851a33b2 100644 --- a/src/components/common/VnSmsDialog.vue +++ b/src/components/common/VnSmsDialog.vue @@ -86,7 +86,7 @@ async function send() {