diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 2368e078e..12366e174 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -24,11 +24,8 @@ const pinnedModulesRef = ref(); @@ -176,4 +168,5 @@ function viewSummary(id) { es: Search invoice: Buscar factura emitida You can search by invoice reference: Puedes buscar por referencia de la factura + Download: Descargar diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index b5947f87b..5daa618d5 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -11,13 +11,13 @@ export const useNavigationStore = defineStore('navigationStore', () => { 'claim', 'ticket', 'invoiceOut', + 'invoiceIn', 'worker', 'shelving', 'wagon', 'route', 'supplier', 'travel', - 'invoiceIn', ]; const pinnedModules = ref([]); const role = useRole(); diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index bd722edab..60d8c5be1 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -1,8 +1,8 @@ /// describe('InvoiceInList', () => { const firstCard = '.q-card:nth-child(1)'; - const firstId = - '.q-card:nth-child(1) .list-items > .vn-label-value:first-child > .value > span'; + const firstChipId = + ':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content'; const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)'; const summaryHeaders = '.summaryBody .header'; @@ -12,9 +12,10 @@ describe('InvoiceInList', () => { }); it('should redirect on clicking a invoice', () => { - cy.get(firstId) + cy.get(firstChipId) .invoke('text') - .then((id) => { + .then((content) => { + const id = content.substring(4); cy.get(firstCard).click(); cy.url().should('include', `/invoice-in/${id}/summary`); });