diff --git a/src/pages/Entry/EntryStockBought.vue b/src/pages/Entry/EntryStockBought.vue deleted file mode 100644 index 4750a8417..000000000 --- a/src/pages/Entry/EntryStockBought.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - - es: - Edit travel: Editar envío - Travel: Envíos - Booked trucks: Camiones reservados - Buyer: Comprador - Reserve: Reservado - Bought: Comprado - More: Más - Date: Fecha - Reserve some space: Reservar espacio - This buyer has already made a reservation for this date: Este comprador ya ha hecho una reserva para esta fecha - diff --git a/src/pages/Entry/EntryStockBoughtDetail.vue b/src/pages/Entry/EntryStockBoughtDetail.vue deleted file mode 100644 index 2c1a5a47e..000000000 --- a/src/pages/Entry/EntryStockBoughtDetail.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - es: - Buyer: Comprador - Reserve: Reservado - Bought: Comprado - More: Más - Date: Fecha - Entry: Entrada - Item: Artículo - Name: Nombre - Volume: Volumen - Packaging: Embalage - diff --git a/src/pages/Entry/EntryStockBoughtFilter.vue b/src/pages/Entry/EntryStockBoughtFilter.vue deleted file mode 100644 index 7694cfe6c..000000000 --- a/src/pages/Entry/EntryStockBoughtFilter.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - en: - params: - dated: Date - workerFk: Worker - es: - Date: Fecha - params: - dated: Date - workerFk: Trabajador - diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js index 4750a4301..d66ea0e0c 100644 --- a/src/router/modules/entry.js +++ b/src/router/modules/entry.js @@ -58,15 +58,6 @@ export default { }, component: () => import('src/pages/Entry/EntryLatestBuys.vue'), }, - { - path: 'stock-Bought', - name: 'EntryStockBought', - meta: { - title: 'reserves', - icon: 'deployed_code_history', - }, - component: () => import('src/pages/Entry/EntryStockBought.vue'), - }, ], }, { diff --git a/test/cypress/integration/entry/stockBought.spec.js b/test/cypress/integration/entry/stockBought.spec.js deleted file mode 100644 index 66e06b79e..000000000 --- a/test/cypress/integration/entry/stockBought.spec.js +++ /dev/null @@ -1,39 +0,0 @@ -describe('EntryStockBought', () => { - beforeEach(() => { - cy.viewport(1920, 1080); - cy.login('buyer'); - cy.visit(`/#/entry/stock-Bought`); - }); - it('Should edit the reserved space', () => { - cy.get('.q-field__native.q-placeholder').should('have.value', '01/01/2001'); - cy.get('input[name="reserve"]').type('10{enter}'); - cy.get('button[title="Save"]').click(); - cy.get('.q-notification__message').should('have.text', 'Data saved'); - }); - it('Should add a new reserved space for buyerBoss', () => { - cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); - cy.get('input[aria-label="Reserve"]').type('1'); - cy.get('input[aria-label="Date"]').eq(1).clear(); - cy.get('input[aria-label="Date"]').eq(1).type('01-01'); - cy.get('input[aria-label="Buyer"]').type('buyerboss{downarrow}{enter}'); - cy.get('.q-notification__message').should('have.text', 'Data created'); - }); - it('Should check detail for the buyer', () => { - cy.get(':nth-child(1) > .sticky > .q-btn > .q-btn__content > .q-icon').click(); - cy.get('tBody > tr').eq(1).its('length').should('eq', 1); - }); - it('Should check detail for the buyerBoss and had no content', () => { - cy.get(':nth-child(2) > .sticky > .q-btn > .q-btn__content > .q-icon').click(); - cy.get('.q-table__bottom.row.items-center.q-table__bottom--nodata').should( - 'have.text', - 'warningNo data available' - ); - }); - it('Should edit travel m3 and refresh', () => { - cy.get('.vn-row > div > .q-btn > .q-btn__content > .q-icon').click(); - cy.get('input[aria-label="m3"]').clear(); - cy.get('input[aria-label="m3"]').type('60'); - cy.get('.q-mt-lg > .q-btn--standard > .q-btn__content > .block').click(); - cy.get('.vn-row > div > :nth-child(2)').should('have.text', '60'); - }); -});