#8220 created items e2e #1039

Merged
jon merged 26 commits from 8220-ItemsE2E into dev 2025-01-07 12:50:36 +00:00
1 changed files with 6 additions and 5 deletions
Showing only changes of commit c2a09868a1 - Show all commits

View File

@ -12,9 +12,9 @@ describe('Item shelving', () => {
cy.get('.q-card > .q-btn > .q-btn__content > .q-icon').click();
cy.get(
jon marked this conversation as resolved Outdated

y porque no haces dataCy?
Aquí y en el resto de ocurrencias

y porque no haces dataCy? Aquí y en el resto de ocurrencias

Opcion a: cy.dataCy('Code_input').eq(4).type
Opcion b: cy.get('[data-cy="Code_input"]').eq(4).type

Opcion a: cy.dataCy('Code_input').eq(4).type Opcion b: cy.get('[data-cy="Code_input"]').eq(4).type
':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');
});
});