diff --git a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js index 7ebaf3ef32..333f7e2c48 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js @@ -1,5 +1,5 @@ /// -describe.skip('InvoiceOut summary', () => { +describe('InvoiceOut summary', () => { const transferInvoice = { Client: { val: 'employee', type: 'select' }, Type: { val: 'Error in customer data', type: 'select' }, diff --git a/test/cypress/integration/zone/zoneCalendar.spec.js b/test/cypress/integration/zone/zoneCalendar.spec.js index 57df3e8693..7c69f1ce93 100644 --- a/test/cypress/integration/zone/zoneCalendar.spec.js +++ b/test/cypress/integration/zone/zoneCalendar.spec.js @@ -33,8 +33,8 @@ describe('ZoneCalendar', () => { cy.get(addEventBtn).click(); cy.dataCy('ZoneEventInclusionRangeRadio').click(); cy.get('.flex > .q-gutter-x-sm > :nth-child(1)').click(); - cy.get(from).type('01/01/2001'); - cy.get(to).type('31/01/2001'); + cy.dataCy('From_inputDate').type('01/01/2001'); + cy.dataCy('To_inputDate').type('31/01/2001'); cy.get(submitBtn).click(); cy.get(deleteBtn).click(); cy.dataCy('VnConfirm_confirm').click(); @@ -47,5 +47,10 @@ describe('ZoneCalendar', () => { '.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]', ).click(); cy.get('.q-mt-lg > .q-btn--standard').click(); + cy.get( + '.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]', + ).click(); + cy.get('.q-mt-lg > :nth-child(2)').click(); + cy.dataCy('VnConfirm_confirm').click(); }); }); diff --git a/test/cypress/integration/zone/zoneWarehouse.spec.js b/test/cypress/integration/zone/zoneWarehouse.spec.js index d50f201455..bca5ced22d 100644 --- a/test/cypress/integration/zone/zoneWarehouse.spec.js +++ b/test/cypress/integration/zone/zoneWarehouse.spec.js @@ -1,6 +1,6 @@ describe('ZoneWarehouse', () => { const data = { - Warehouse: { val: 'Warehouse One', type: 'select' }, + Warehouse: { val: 'Warehouse Two', type: 'select' }, }; const dataError = 'The introduced warehouse already exists'; const saveBtn = '.q-btn--standard > .q-btn__content > .block'; @@ -8,12 +8,12 @@ describe('ZoneWarehouse', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit(`/#/zone/2/warehouses`); + cy.visit(`/#/zone/1/warehouses`); }); it('should throw an error if the warehouse chosen is already put in the zone', () => { cy.addBtnClick(); - cy.dataCy('Warehouse_select').type('Warehouse Two{enter}'); + cy.dataCy('Warehouse_select').type('Warehouse One{enter}'); cy.get(saveBtn).click(); cy.checkNotification(dataError); });