diff --git a/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js b/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js index ecd26f4c5..73d26d8fc 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js @@ -1,6 +1,5 @@ /// describe('InvoiceOut manual invoice', () => { - const descriptorOptions = '[data-cy="descriptor-more-opts-menu"] > .q-list'; beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); @@ -8,7 +7,7 @@ describe('InvoiceOut manual invoice', () => { cy.get('#searchbar input').type('{enter}'); }); - it('should create an invoice from a ticket and go to that invoice, then delete that invoice', () => { + it('should create an invoice from a ticket and go to that invoice', () => { cy.searchByLabel('Customer ID', '1101'); cy.get( '[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner', @@ -17,16 +16,6 @@ describe('InvoiceOut manual invoice', () => { cy.checkNotification('Data saved'); cy.get('.q-virtual-scroll__content > :nth-child(1) > :nth-child(3)').click(); cy.get(':nth-child(8) > .value > .link').click(); - cy.get('[href="#/invoice-out/6/summary"] > .q-btn > .q-btn__content').click(); - cy.dataCy('descriptor-more-opts').click(); - cy.get(descriptorOptions) - .find('.q-item') - .its('length') - .then((count) => { - cy.log('NĂºmero de opciones:', count); - expect(count).to.equal(7); - }); - cy.get('[data-cy="descriptor-more-opts-menu"] > .q-list > :nth-child(4)').click(); - cy.get('[data-cy="VnConfirm_confirm"]').click(); + cy.get('.header > :nth-child(3) > .q-btn__content').click(); }); }); diff --git a/test/cypress/integration/zone/zoneSummary.spec.js b/test/cypress/integration/zone/zoneSummary.spec.js index 5cd49840f..fa9c5353c 100644 --- a/test/cypress/integration/zone/zoneSummary.spec.js +++ b/test/cypress/integration/zone/zoneSummary.spec.js @@ -6,17 +6,7 @@ describe('ZoneSummary', () => { cy.visit('/#/zone/2/summary'); }); - it('should redirect to basic data', () => { - cy.get(':nth-child(1) > .q-pb-md > .header-link > .link').click(); - cy.url().should('include', 'zone/2/basic-data'); - }); - - it('should redirect to warehouses', () => { - cy.get('.full-width > .q-pb-md > .header-link > .link').click(); - cy.url().should('include', 'zone/2/warehouses'); - }); - - it('should clone the zone', () => { + it('should clone the zone, then delete it', () => { cy.dataCy('descriptor-more-opts').click(); cy.dataCy('Clone_button').click(); cy.dataCy('VnConfirm_confirm').click(); @@ -24,14 +14,9 @@ describe('ZoneSummary', () => { cy.url().should('match', /zone\/\d+\/basic-data/); cy.get('.list-box > :nth-child(1)').should('include.text', agency); cy.get('.title > span').should('include.text', 'Zone pickup B'); - }); - - it('should delete the zone', () => { - cy.visit('/#/zone/7/summary'); + cy.get('.q-page').should('exist'); cy.dataCy('descriptor-more-opts').click(); cy.dataCy('Delete_button').click(); cy.dataCy('VnConfirm_confirm').click(); - cy.url().should('include', '/zone/list'); - cy.get('.q-notification__message').should('have.text', 'Zone deleted'); }); });