diff --git a/cypress.config.js b/cypress.config.js index 5cf075e2a..033aa35c7 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -30,7 +30,7 @@ export default defineConfig({ trashAssetsBeforeRuns: false, requestTimeout: 10000, responseTimeout: 30000, - pageLoadTimeout: 60000, + pageLoadTimeout: 120000, defaultBrowser: 'chromium', fixturesFolder: 'test/cypress/fixtures', screenshotsFolder: 'test/cypress/screenshots', diff --git a/docs/Dockerfile.dev b/docs/Dockerfile.dev index 29b194ffa..3117e2c20 100644 --- a/docs/Dockerfile.dev +++ b/docs/Dockerfile.dev @@ -25,6 +25,8 @@ RUN apt-get update \ libnss3 \ libxss1 \ libxtst6 \ + mesa-vulkan-drivers \ + vulkan-tools \ xauth \ xvfb \ && apt-get clean \ @@ -39,7 +41,7 @@ ENV PNPM_HOME="/home/app/.local/share/pnpm" ENV PATH="$PNPM_HOME:$PATH" RUN pnpm setup \ - && pnpm install --global cypress@13.6.6 \ + && pnpm install --global cypress@14.1.0 \ && cypress install WORKDIR /app diff --git a/package.json b/package.json index 1361d1fd8..63cdfab90 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0", "@vue/test-utils": "^2.4.4", "autoprefixer": "^10.4.14", - "cypress": "^13.6.6", + "cypress": "^14.1.0", "cypress-mochawesome-reporter": "^3.8.2", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31a01e69c..36d9c0644 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,11 +71,11 @@ devDependencies: specifier: ^10.4.14 version: 10.4.20(postcss@8.5.1) cypress: - specifier: ^13.6.6 - version: 13.17.0 + specifier: ^14.1.0 + version: 14.1.0 cypress-mochawesome-reporter: specifier: ^3.8.2 - version: 3.8.2(cypress@13.17.0)(mocha@11.0.1) + version: 3.8.2(cypress@14.1.0)(mocha@11.0.1) eslint: specifier: ^9.18.0 version: 9.18.0 @@ -3321,7 +3321,7 @@ packages: /csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} - /cypress-mochawesome-reporter@3.8.2(cypress@13.17.0)(mocha@11.0.1): + /cypress-mochawesome-reporter@3.8.2(cypress@14.1.0)(mocha@11.0.1): resolution: {integrity: sha512-oJZkNzhNmN9ZD+LmZyFuPb8aWaIijyHyqYh52YOBvR6B6ckfJNCHP3A98a+/nG0H4t46CKTNwo+wNpMa4d2kjA==} engines: {node: '>=14'} hasBin: true @@ -3329,7 +3329,7 @@ packages: cypress: '>=6.2.0' dependencies: commander: 10.0.1 - cypress: 13.17.0 + cypress: 14.1.0 fs-extra: 10.1.0 mochawesome: 7.1.3(mocha@11.0.1) mochawesome-merge: 4.3.0 @@ -3338,9 +3338,9 @@ packages: - mocha dev: true - /cypress@13.17.0: - resolution: {integrity: sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==} - engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} + /cypress@14.1.0: + resolution: {integrity: sha512-pPPj8Uu9NwjaaiXAEcjYZZmgsq6v9Zs1Nw6a+zRF+ANgYSNhH4S32SjFRsvMcuOHR/8dp4GBJhBPqIPSs+TxaA==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true requiresBuild: true dependencies: diff --git a/src/components/TicketProblems.vue b/src/components/TicketProblems.vue index 5978f4e21..c11cc2e7b 100644 --- a/src/components/TicketProblems.vue +++ b/src/components/TicketProblems.vue @@ -28,6 +28,17 @@ defineProps({ row: { type: Object, required: true } }); {{ t('ticketSale.reserved') }} + + + {{ t('Ticket deleted') }} + + -import { ref, toRefs, computed, watch, onMounted, useAttrs } from 'vue'; +import { ref, toRefs, computed, watch, onMounted, useAttrs, nextTick } from 'vue'; import { useI18n } from 'vue-i18n'; import { useArrayData } from 'src/composables/useArrayData'; import { useRequired } from 'src/composables/useRequired'; @@ -247,6 +247,7 @@ async function fetchFilter(val) { } async function filterHandler(val, update) { + if (isLoading.value) return update(); if (!val && lastVal.value === val) { lastVal.value = val; return update(); @@ -294,6 +295,7 @@ async function onScroll({ to, direction, from, index }) { await arrayData.loadMore(); setOptions(arrayData.store.data); vnSelectRef.value.scrollTo(lastIndex); + await nextTick(); isLoading.value = false; } } diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d7187371e..7ce4e49a1 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -893,6 +893,8 @@ components: VnLv: copyText: '{copyValue} has been copied to the clipboard' iban_tooltip: 'IBAN: ES21 1234 5678 90 0123456789' + VnNotes: + clientWithoutPhone: 'The following clients do not have a phone number and the message will not be sent to them: {clientWithoutPhone}' weekdays: sun: Sunday mon: Monday diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index fc3018f39..7ce2a446b 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -980,6 +980,8 @@ components: VnLv: copyText: '{copyValue} se ha copiado al portapepeles' iban_tooltip: 'IBAN: ES21 1234 5678 90 0123456789' + VnNotes: + clientWithoutPhone: 'Estos clientes no tienen asociado número de télefono y el sms no les será enviado: {clientWithoutPhone}' weekdays: sun: Domingo mon: Lunes diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue index dfaf6c109..93508ac8b 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue @@ -46,6 +46,11 @@ function ticketFilter(invoice) {