diff --git a/cypress.config.js b/cypress.config.js index cab0705c97..ac7f223f2e 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -21,15 +21,15 @@ export default defineConfig({ video: false, specPattern: [ 'test/cypress/integration/entry/stockBought.spec.js', - // 'test/cypress/integration/invoiceOut/invoiceOutNegativeBases.js', - // 'test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js', - // 'test/cypress/integration/item/itemTag.spec.js', - // 'test/cypress/integration/route/routeList.spec.js', - // 'test/cypress/integration/ticket/ticketList.spec.js', - // 'test/cypress/integration/ticket/ticketSale.spec.js', - // 'test/cypress/integration/vnComponent/UserPanel.spec.js', - // 'test/cypress/integration/vnComponent/VnLocation.spec.js', - // 'test/cypress/integration/worker/workerNotificationsManager.spec.js', + 'test/cypress/integration/invoiceOut/invoiceOutNegativeBases.js', + 'test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js', + 'test/cypress/integration/item/itemTag.spec.js', + 'test/cypress/integration/route/routeList.spec.js', + 'test/cypress/integration/ticket/ticketList.spec.js', + 'test/cypress/integration/ticket/ticketSale.spec.js', + 'test/cypress/integration/vnComponent/UserPanel.spec.js', + 'test/cypress/integration/vnComponent/VnLocation.spec.js', + 'test/cypress/integration/worker/workerNotificationsManager.spec.js', ], experimentalRunAllSpecs: true, watchForFileChanges: true, diff --git a/test/cypress/integration/entry/stockBought.spec.js b/test/cypress/integration/entry/stockBought.spec.js index f43211b89d..d56d217d39 100644 --- a/test/cypress/integration/entry/stockBought.spec.js +++ b/test/cypress/integration/entry/stockBought.spec.js @@ -8,7 +8,7 @@ describe('EntryStockBought', () => { 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'); + cy.checkNotification('Data saved'); }); it('Should add a new reserved space for buyerBoss', () => { cy.addBtnClick(); @@ -17,7 +17,7 @@ describe('EntryStockBought', () => { cy.get('input[aria-label="Date"]').eq(1).type('01-01-2001'); cy.selectOption('input[aria-label="Buyer"]', 'buyerboss'); cy.get('#formModel button[title="Save"]').click(); - cy.get('.q-notification__message').should('have.text', 'Data created'); + cy.checkNotification('Data created'); }); it('Should check detail for the buyer', () => { cy.get(':nth-child(1) > .sticky > .q-btn > .q-btn__content > .q-icon').click();