fix: #8422 fixed ItemTag e2e test not working #1301

Merged
provira merged 8 commits from 8422-e2eItemTag into dev 2025-02-04 09:25:39 +00:00
1 changed files with 4 additions and 10 deletions
Showing only changes of commit 2f80bc90af - Show all commits

View File

@ -12,9 +12,7 @@ describe('Item tag', () => {
cy.get('.q-page-sticky > div').click();
cy.dataCy('Tag_select').eq(7).type('Tallos');
cy.get('.q-menu .q-item').contains('Tallos').click();
cy.get(
':nth-child(8) > [label="Value"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Value_input"]'
).type('1');
cy.get(':nth-child(8) > [label="Value"]').type('1');
+cy.dataCy('crudModelDefaultSaveBtn').click();
cy.checkNotification("The tag or priority can't be repeated for an item");
});
@ -25,15 +23,11 @@ describe('Item tag', () => {
cy.get('.q-page-sticky > div').click();
cy.dataCy('Tag_select').eq(7).click();
cy.get('.q-menu .q-item').contains('Ancho de la base').type('{enter}');
cy.get(
':nth-child(8) > [label="Value"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Value_input"]'
).type('50');
cy.get(':nth-child(8) > [label="Value"]').type('50');
cy.dataCy('crudModelDefaultSaveBtn').click();
cy.checkNotification('Data saved');
cy.get(
'[data-cy="itemTags"] > :nth-child(8) > .justify-center > .q-icon'
).click();
cy.dataCy('itemTags').children(':nth-child(8)').find('.justify-center > .q-icon').click();

hace falta todo este churro para que al final sea un data-cy?

hace falta todo este churro para que al final sea un data-cy?
cy.dataCy('VnConfirm_confirm').click();
cy.checkNotification('Data saved');
});
});
});

cy.get para usar el selector data-cy?
Creo que no es lo correcto, si tienes dudas lo comentamos

cy.get para usar el selector data-cy? Creo que no es lo correcto, si tienes dudas lo comentamos