diff --git a/cypress.config.js b/cypress.config.js index 1100b59b1..c21fd5819 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -34,5 +34,7 @@ module.exports = defineConfig({ require('cypress-mochawesome-reporter/plugin')(on); // implement node event listeners here }, + viewportWidth: 1280, + viewportHeight: 720, }, }); diff --git a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js index 27f887eeb..44b0a9961 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js @@ -9,7 +9,6 @@ describe('InvoiceOut summary', () => { cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/invoice-out/list`); - cy.typeSearchbar('{enter}'); }); it('should generate the invoice PDF', () => { @@ -19,13 +18,12 @@ describe('InvoiceOut summary', () => { cy.dataCy('VnConfirm_confirm').click(); cy.checkNotification('The invoice PDF document has been regenerated'); }); - it('should refund the invoice ', () => { cy.typeSearchbar('T1111111{enter}'); cy.dataCy('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(7)').click(); cy.get('#q-portal--menu--3 > .q-menu > .q-list > :nth-child(2)').click(); - cy.checkNotification('The following refund ticket have been created 1000000'); + cy.checkNotification('The following refund ticket have been created'); }); it('should delete an invoice ', () => { @@ -35,8 +33,7 @@ describe('InvoiceOut summary', () => { cy.dataCy('VnConfirm_confirm').click(); cy.checkNotification('InvoiceOut deleted'); }); - // https://redmine.verdnatura.es/issues/8415 - it.skip('should transfer the invoice ', () => { + it('should transfer the invoice ', () => { cy.typeSearchbar('T1111111{enter}'); cy.dataCy('descriptor-more-opts').click(); cy.get('.q-menu > .q-list > :nth-child(1)').click(); diff --git a/test/cypress/integration/vnComponent/VnLocation.spec.js b/test/cypress/integration/vnComponent/VnLocation.spec.js index 09665a816..751b3a065 100644 --- a/test/cypress/integration/vnComponent/VnLocation.spec.js +++ b/test/cypress/integration/vnComponent/VnLocation.spec.js @@ -49,12 +49,12 @@ describe('VnLocation', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('/#/worker/create', { timeout: 5000 }); + cy.visit('/#/worker/list', { timeout: 5000 }); + cy.dataCy('vnTableCreateBtn').click(); cy.waitForElement('.q-card'); cy.get(inputLocation).click(); }); - // https://redmine.verdnatura.es/issues/8436 - it.skip('Show all options', function () { + it('Show all options', function () { cy.get(locationOptions).should('have.length.at.least', 5); }); it('input filter location as "al"', function () { diff --git a/test/cypress/integration/worker/workerList.spec.js b/test/cypress/integration/worker/workerList.spec.js index c1c37fd32..0a45441c1 100644 --- a/test/cypress/integration/worker/workerList.spec.js +++ b/test/cypress/integration/worker/workerList.spec.js @@ -10,8 +10,8 @@ describe('WorkerList', () => { it('should open the worker summary', () => { cy.get(inputName).type('jessica{enter}'); - cy.get(searchBtn).click(); cy.intercept('GET', /\/api\/Workers\/summary+/).as('worker'); + cy.get(searchBtn).click(); cy.wait('@worker').then(() => cy.get(descriptorTitle).should('include.text', 'Jessica') );