From 6a0c58631c4e8d997b93f9f7ebaecdfd7bb53ff5 Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 12 Mar 2025 12:34:03 +0100 Subject: [PATCH] fix: refs #8621 test for date input selector --- src/pages/Route/RouteList.vue | 30 +++++++------------ .../route/routeExtendedList.spec.js | 2 +- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index db52dcf6d..f8234c7db 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -39,28 +39,24 @@ const columns = computed(() => [ width: '25px', }, { - name: 'workerFk', - label: t('gloabls.worker'), - component: markRaw(VnSelectWorker), - create: true, - format: (row, dashIfEmpty) => dashIfEmpty(row.travelRef), - columnFilter: false, - width: '100px', - }, - { + align: 'left', name: 'workerFk', label: t('globals.worker'), - visible: false, + component: markRaw(VnSelectWorker), + create: true, cardVisible: true, + format: (row, dashIfEmpty) => dashIfEmpty(row.travelRef), + columnFilter: false, }, { - name: 'agencyName', + align: 'left', + name: 'agencyModeFk', label: t('globals.agency'), - visible: false, + format: (row) => row?.agencyName, cardVisible: true, }, { - label: t('globals.Agency'), + label: t('globals.agency'), name: 'agencyModeFk', component: 'select', attrs: { @@ -78,17 +74,13 @@ const columns = computed(() => [ { align: 'left', name: 'vehicleFk', - label: t('route.Vehicle'), + label: t('globals.vehicle'), format: (row) => row?.vehiclePlateNumber, cardVisible: true, }, - { - name: 'vehiclePlateNumber', - label: t('globals.vehicle'), - }, { name: 'vehicleFk', - label: t('globals.Vehicle'), + label: t('globals.vehicle'), cardVisible: true, component: 'select', attrs: { diff --git a/test/cypress/integration/route/routeExtendedList.spec.js b/test/cypress/integration/route/routeExtendedList.spec.js index 237729107..b46ce3ba2 100644 --- a/test/cypress/integration/route/routeExtendedList.spec.js +++ b/test/cypress/integration/route/routeExtendedList.spec.js @@ -120,7 +120,7 @@ describe('Route extended list', () => { it('Should clone selected route', () => { cy.get(selectors.lastRowSelectCheckBox).click(); cy.get(selectors.cloneBtn).click(); - cy.dataCy('route.Starting date_inputDate').type('10-05-2001'); + cy.dataCy('Starting date_inputDate').type('10-05-2001'); cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click(); cy.validateContent(selectors.date, '05/10/2001'); });