feat: refs #6942 test e2e tobook & toUnbook
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-03-07 15:46:38 +01:00
parent 92dcff6d49
commit 6ed6e4150a
2 changed files with 21 additions and 8 deletions

View File

@ -415,14 +415,6 @@ const createInvoiceInCorrection = async () => {
>
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
</QItem>
<QItem
v-if="entity.dmsFk"
v-ripple
clickable
@click="downloadFile(entity.dmsFk)"
>
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
</QItem>
</template>
<template #body="{ entity }">
<VnLv :label="t('invoiceIn.card.issued')" :value="toDate(entity.issued)" />

View File

@ -0,0 +1,21 @@
describe('InvoiceInDescriptor', () => {
const saveDialog = '.q-btn--unelevated > .q-btn__content > .block';
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section';
it('should booking and unbooking the invoice properly', () => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary?limit=10`);
cy.openLeftMenu();
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
cy.get(saveDialog).click();
cy.get('.q-checkbox').should('have.attr', 'aria-checked', 'true');
cy.openLeftMenu();
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
cy.get(saveDialog).click();
cy.get('.q-checkbox').should('have.attr', 'aria-checked', 'false');
});
});