diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index 253683889..11dcbee3b 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -187,15 +187,10 @@ function existSummary(routes) { color: lighten($primary, 20%); } .q-checkbox { - display: flex; - margin-bottom: 9px; & .q-checkbox__label { - margin-left: 31px; color: var(--vn-text-color); } & .q-checkbox__inner { - position: absolute; - left: 0; color: var(--vn-label-color); } } diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue index 3220bce6a..ff65f759b 100644 --- a/src/components/ui/VnLv.vue +++ b/src/components/ui/VnLv.vue @@ -2,6 +2,7 @@ import { dashIfEmpty } from 'src/filters'; import { useI18n } from 'vue-i18n'; import { useClipboard } from 'src/composables/useClipboard'; +import { computed } from 'vue'; const $props = defineProps({ label: { type: String, default: null }, @@ -24,52 +25,67 @@ function copyValueText() { }, }); } +const val = computed(() => $props.value); - - diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js index ca0b309e9..a2e9998bb 100644 --- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js @@ -1,8 +1,7 @@ describe('InvoiceInDescriptor', () => { const dialogBtns = '.q-card__actions button'; const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section'; - const isBookedField = - '.q-card:nth-child(3) .vn-label-value:nth-child(5) > .value > span'; + const isBookedField = '.q-card:nth-child(3) .vn-label-value:nth-child(5) .q-checkbox'; it('should booking and unbooking the invoice properly', () => { cy.viewport(1280, 720); @@ -12,10 +11,10 @@ describe('InvoiceInDescriptor', () => { cy.openActionsDescriptor(); cy.get(firstDescritorOpt).click(); cy.get(dialogBtns).eq(1).click(); - cy.get(isBookedField).should('have.attr', 'title', 'true'); + cy.get(isBookedField).should('have.attr', 'aria-checked', 'true'); cy.get(firstDescritorOpt).click(); cy.get(dialogBtns).eq(1).click(); - cy.get(isBookedField).should('have.attr', 'title', 'false'); + cy.get(isBookedField).should('have.attr', 'aria-checked', 'false'); }); });