Merge pull request 'Fix[InvoiceInDescriptor]: Fixed descriptor E2E' (!1316) from Fix-InvoiceInDescriptorE2E into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1316 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
f6439ed356
|
@ -1,7 +1,7 @@
|
|||
describe('InvoiceInDescriptor', () => {
|
||||
const dialogBtns = '.q-card__actions button';
|
||||
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section';
|
||||
const isBookedField = '.q-card:nth-child(3) .vn-label-value:nth-child(5) .q-checkbox';
|
||||
const book = '.summaryHeader > .no-wrap > .q-btn';
|
||||
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(5) > .q-item__section';
|
||||
const checkbox = ':nth-child(5) > .q-checkbox';
|
||||
|
||||
it('should booking and unbooking the invoice properly', () => {
|
||||
cy.viewport(1280, 720);
|
||||
|
@ -9,13 +9,13 @@ describe('InvoiceInDescriptor', () => {
|
|||
cy.visit('/#/invoice-in/1/summary');
|
||||
cy.waitForElement('.q-page');
|
||||
|
||||
cy.openActionsDescriptor();
|
||||
cy.get(firstDescritorOpt).click();
|
||||
cy.get(dialogBtns).eq(1).click();
|
||||
cy.get(isBookedField).should('have.attr', 'aria-checked', 'true');
|
||||
cy.get(book).click();
|
||||
cy.dataCy('VnConfirm_confirm').click();
|
||||
cy.get(checkbox).invoke('attr', 'aria-checked').should('eq', 'true');
|
||||
|
||||
cy.dataCy('descriptor-more-opts').first().click();
|
||||
cy.get(firstDescritorOpt).click();
|
||||
cy.get(dialogBtns).eq(1).click();
|
||||
cy.get(isBookedField).should('have.attr', 'aria-checked', 'false');
|
||||
cy.dataCy('VnConfirm_confirm').click();
|
||||
cy.get(checkbox).invoke('attr', 'aria-checked').should('eq', 'false');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue