From 0e55f7abdc863b00967028a45262c5568cb49bb8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 25 Nov 2024 09:18:11 -0300 Subject: [PATCH 01/19] test: order catalog tests --- src/components/ui/VnFilterPanel.vue | 1 + .../Order/Card/CatalogFilterValueDialog.vue | 4 +- src/pages/Order/Card/OrderCatalog.vue | 4 +- src/pages/Order/Card/OrderCatalogFilter.vue | 5 + .../claim/Order/catalogTests.spec.js | 122 ++++++++++++++++++ test/cypress/support/commands.js | 4 + 6 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 test/cypress/integration/claim/Order/catalogTests.spec.js diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index b9aa5e114..eca4e0995 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -249,6 +249,7 @@ function sanitizer(params) { :key="chip.label" :removable="!unremovableParams?.includes(chip.label)" @remove="remove(chip.label)" + data-cy="vnFilterPanelChip" >
diff --git a/src/pages/Order/Card/CatalogFilterValueDialog.vue b/src/pages/Order/Card/CatalogFilterValueDialog.vue index 9593e08c4..5855f91f4 100644 --- a/src/pages/Order/Card/CatalogFilterValueDialog.vue +++ b/src/pages/Order/Card/CatalogFilterValueDialog.vue @@ -50,7 +50,7 @@ const getSelectedTagValues = async (tag) => { @@ -149,5 +142,4 @@ es: Issued: Fecha emisión Created: Fecha creación Dued: Fecha vencimiento - More options: Más opciones diff --git a/src/pages/Ticket/TicketFilter.vue b/src/pages/Ticket/TicketFilter.vue index 6f1cac83b..bde27f30e 100644 --- a/src/pages/Ticket/TicketFilter.vue +++ b/src/pages/Ticket/TicketFilter.vue @@ -212,81 +212,78 @@ const getGroupedStates = (data) => { /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -340,7 +337,6 @@ es: With problems: Con problemas Invoiced: Facturado Routed: Enrutado - More options: Más opciones Province: Provincia Agency: Agencia Warehouse: Almacén From a2d84c48c0cfcde23cb52a66694716756ffcaaa8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 26 Nov 2024 21:05:47 -0300 Subject: [PATCH 09/19] refactor: remove unnecesary things --- src/pages/Order/Card/OrderCatalog.vue | 1 - test/cypress/integration/claim/Order/catalogTests.spec.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue index f3e70cd6f..a71065521 100644 --- a/src/pages/Order/Card/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -106,7 +106,6 @@ watch( :limit="50" :user-params="catalogParams" :auto-load="autoLoad" - data-cy="orderCatalogPage" > diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index 907e49499..66b2a30d3 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -174,6 +174,7 @@ async function onProvinceCreated(data) { v-model="data.code" :rules="validate('postcode.code')" clearable + required />