Merge pull request 'fix: add data-cy attribute to card button for improved testing' (!1417) from warmFix_fixedMyEntryTest into dev
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1417
Reviewed-by: Pablo Natek <pablone@verdnatura.es>
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Jose Antonio Tubau 2025-02-18 11:29:45 +00:00
commit c47ca095c5
2 changed files with 3 additions and 4 deletions

View File

@ -861,6 +861,7 @@ function cardClick(_, row) {
:key="index"
:title="btn.title"
:icon="btn.icon"
data-cy="cardBtn"
class="q-pa-xs"
:class="
btn.isPrimary

View File

@ -8,11 +8,9 @@ describe('EntryMy when is supplier', () => {
},
});
});
it('should open buyLabel when is supplier', () => {
cy.get(
'[to="/null/3"] > .q-card > :nth-child(2) > .q-btn > .q-btn__content > .q-icon'
).click();
cy.dataCy('cardBtn').eq(2).click();
cy.dataCy('printLabelsBtn').click();
cy.window().its('open').should('be.called');
});