From 8b3a9db78143f19136a619b8043d4744c4a90fab Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 3 Dec 2024 13:00:16 +0100 Subject: [PATCH] feat: refs #8220 created items e2e --- src/components/RegularizeStockForm.vue | 1 + src/components/common/VnSelectDialog.vue | 1 + src/pages/Item/Card/ItemBotanical.vue | 2 +- src/pages/Item/Card/ItemTags.vue | 2 +- src/pages/Item/ItemListFilter.vue | 2 + src/pages/Item/ItemTypeList.vue | 4 +- .../integration/item/itemBotanical.spec.js | 35 ++++++++++++++++ .../integration/item/itemSummary.spec.js | 25 ++++++++++++ test/cypress/integration/item/itemTag.spec.js | 37 +++++++++++++++++ test/cypress/integration/item/itemTax.spec.js | 18 +++++++++ .../cypress/integration/item/itemType.spec.js | 40 +++++++++++++++++++ 11 files changed, 162 insertions(+), 5 deletions(-) create mode 100644 test/cypress/integration/item/itemBotanical.spec.js create mode 100644 test/cypress/integration/item/itemSummary.spec.js create mode 100644 test/cypress/integration/item/itemTag.spec.js create mode 100644 test/cypress/integration/item/itemTax.spec.js create mode 100644 test/cypress/integration/item/itemType.spec.js diff --git a/src/components/RegularizeStockForm.vue b/src/components/RegularizeStockForm.vue index f34386fc4..3cd18d1c8 100644 --- a/src/components/RegularizeStockForm.vue +++ b/src/components/RegularizeStockForm.vue @@ -55,6 +55,7 @@ const onDataSaved = (data) => { v-model.number="data.quantity" type="number" autofocus + data-cy="regularizeStockInput" /> diff --git a/src/components/common/VnSelectDialog.vue b/src/components/common/VnSelectDialog.vue index 350aa9272..a19c3e30c 100644 --- a/src/components/common/VnSelectDialog.vue +++ b/src/components/common/VnSelectDialog.vue @@ -50,6 +50,7 @@ const isAllowedToCreate = computed(() => { :style="{ 'font-variation-settings': `'FILL' ${1}`, }" + :data-cy="`SelectDialogAddIcon-${$attrs.label || 'default'}`" > {{ tooltip }} diff --git a/src/pages/Item/Card/ItemBotanical.vue b/src/pages/Item/Card/ItemBotanical.vue index c4b561772..57774f75e 100644 --- a/src/pages/Item/Card/ItemBotanical.vue +++ b/src/pages/Item/Card/ItemBotanical.vue @@ -1,5 +1,5 @@