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/VnInput.vue b/src/components/common/VnInput.vue index 57a495ac3..3cecf760a 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -141,13 +141,16 @@ const handleInsertMode = (e) => { - {{ `#${opt[optionCaption] || opt[optionValue]}` }} + + {{ `#${getCaption(opt)}` }} diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index a2d3b9ee1..bfaa76588 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -1,14 +1,16 @@ +