0
0
Fork 0

feat: refs #8418 add data-cy attribute for print labels button in EntryBuysTableDialog

This commit is contained in:
Jose Antonio Tubau 2025-01-29 11:48:36 +01:00
parent 3652e28a61
commit 74a6b20590
2 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@ function downloadCSV(rows) {
@click="
openReport(`Entries/${entityId}/labelSupplier`)
"
data-cy="entryBuysTableDialog_printLabelsBtn"
/>
</template>
<template #body="props">

View File

@ -13,7 +13,7 @@ describe('EntryMy when is supplier', () => {
cy.get(
'[to="/null/3"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon'
).click();
cy.get('.q-card__section > .q-infinite-scroll > .q-table__container > .q-table__top > :nth-child(3) > .q-btn > .q-btn__content > .q-icon').click();
cy.get('[data-cy="entryBuysTableDialog_printLabelsBtn"]').click();
cy.window().its('open').should('be.called');
});
});