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'); }); });