From c2a09868a1ecb516893742e0208d3e88c728a30b Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 10 Dec 2024 07:11:18 +0100 Subject: [PATCH] feat: refs #8220 added barcodes e2e test --- test/cypress/integration/item/itemBarcodes.spec.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/item/itemBarcodes.spec.js b/test/cypress/integration/item/itemBarcodes.spec.js index fc32c582e..d9add4d4c 100644 --- a/test/cypress/integration/item/itemBarcodes.spec.js +++ b/test/cypress/integration/item/itemBarcodes.spec.js @@ -12,9 +12,9 @@ describe('Item shelving', () => { cy.get('.q-card > .q-btn > .q-btn__content > .q-icon').click(); cy.get( ':nth-child(4) > div.full-width > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Code_input"]' - ).type('1111111111{enter}'); - // cuando se haga merge del arreglo de items acabar esto para que muestre error - // cy.checkNotification('Data created'); + ).type('1111111111'); + cy.dataCy('crudModelDefaultSaveBtn').click(); + cy.checkNotification('Codes can not be repeated'); }); it('should create a new barcode', () => { @@ -22,7 +22,8 @@ describe('Item shelving', () => { cy.get('.q-card > .q-btn > .q-btn__content > .q-icon').click(); cy.get( ':nth-child(4) > div.full-width > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Code_input"]' - ).type('1212121212{enter}'); - // cy.checkNotification('Data created'); + ).type('1231231231'); + cy.dataCy('crudModelDefaultSaveBtn').click(); + cy.checkNotification('Data saved'); }); });