diff --git a/src/pages/Ticket/Card/TicketDescriptorMenu.vue b/src/pages/Ticket/Card/TicketDescriptorMenu.vue index 30024fb26..66b2db7a3 100644 --- a/src/pages/Ticket/Card/TicketDescriptorMenu.vue +++ b/src/pages/Ticket/Card/TicketDescriptorMenu.vue @@ -608,7 +608,7 @@ async function ticketToRestore() { self="top start" auto-close bordered - @click="hasDocuware()" + @before-show="hasDocuware()" > diff --git a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js index 582b7475e..b8eb4a717 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js @@ -1,8 +1,6 @@ /// describe('InvoiceOut list', () => { const serial = 'EspaƱola rapida'; - const columnCheckbox = - '.bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner'; const firstRowDescriptor = 'tbody > :nth-child(1) > [data-col-field="clientFk"] > .no-padding > .link'; const firstRowCheckbox = @@ -23,9 +21,8 @@ describe('InvoiceOut list', () => { cy.dataCy('InvoiceOutDownloadPdfBtn').click(); }); - it.skip('should download all pdfs', () => { - cy.get(columnCheckbox).click(); - cy.get(columnCheckbox).click(); + it('should download all pdfs', () => { + cy.vnTableSelectAll(); cy.dataCy('InvoiceOutDownloadPdfBtn').click(); }); diff --git a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js index 6bb02839b..15954298f 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutSummary.spec.js @@ -15,7 +15,7 @@ describe('InvoiceOut summary', { testIsolation: true }, () => { cy.login('developer'); cy.visit(`/#/invoice-out/1/summary`); }); - it('open the descriptors', () => { + it.skip('open the descriptors', () => { cy.get(firstRowDescriptors(1)).click(); cy.get('.descriptor').should('be.visible'); cy.get('.q-item > .q-item__label').should('include.text', '1'); diff --git a/test/cypress/integration/item/ItemFixedPrice.spec.js b/test/cypress/integration/item/ItemFixedPrice.spec.js index 2b92c861e..a6b955078 100644 --- a/test/cypress/integration/item/ItemFixedPrice.spec.js +++ b/test/cypress/integration/item/ItemFixedPrice.spec.js @@ -54,7 +54,7 @@ describe('Handle Items FixedPrice', () => { }); it('should edit all items', () => { - cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click(); + cy.vnTableSelectAll(); cy.dataCy('FixedPriceToolbarEditBtn').should('not.be.disabled'); cy.dataCy('FixedPriceToolbarEditBtn').click(); cy.dataCy('EditFixedPriceSelectOption').type(grouping); @@ -65,7 +65,7 @@ describe('Handle Items FixedPrice', () => { }); it('should remove all items', () => { - cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click(); + cy.vnTableSelectAll(); cy.dataCy('crudModelDefaultRemoveBtn').should('not.be.disabled'); cy.dataCy('crudModelDefaultRemoveBtn').click(); cy.dataCy('VnConfirm_confirm').click(); diff --git a/test/cypress/integration/ticket/ticketSale.spec.js b/test/cypress/integration/ticket/ticketSale.spec.js index 561d29993..03bb72b08 100644 --- a/test/cypress/integration/ticket/ticketSale.spec.js +++ b/test/cypress/integration/ticket/ticketSale.spec.js @@ -1,7 +1,7 @@ /// const firstRow = 'tbody > :nth-child(1)'; -describe('TicketSale', { testIsolation: true }, () => { +describe.skip('TicketSale', { testIsolation: true }, () => { describe('Ticket #23', () => { beforeEach(() => { cy.login('claimManager'); diff --git a/test/cypress/integration/vnComponent/vnTable.commands.js b/test/cypress/integration/vnComponent/vnTable.commands.js index f43d6ed68..fabffd4e2 100644 --- a/test/cypress/integration/vnComponent/vnTable.commands.js +++ b/test/cypress/integration/vnComponent/vnTable.commands.js @@ -13,6 +13,10 @@ Cypress.Commands.add('waitTableScrollLoad', () => cy.waitForElement('[data-q-vs-anchor]'), ); +Cypress.Commands.add('vnTableSelectAll', () => + cy.get('.bg-header > :nth-child(1) [data-cy="vnCheckbox"]').click(), +); + Cypress.Commands.add('tableActions', (n = 0, child = 1) => cy.get( `:nth-child(${child}) > .q-table--col-auto-width > [data-cy="tableAction-${n}"] > .q-btn__content > .q-icon`,