/// describe('InvoiceOut negative bases', () => { const clientDescriptor = ':nth-child(1) > [data-col-field="clientId"] > .no-padding > .link'; const ticketDescriptor = ':nth-child(1) > [data-col-field="ticketFk"] > .no-padding > .link'; const workerDescriptor = ':nth-child(1) > [data-col-field="workerName"] > .no-padding > .link'; beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/invoice-out/negative-bases`); }); it('should open the posible descriptors', () => { cy.get(clientDescriptor).click(); cy.get('.descriptor').should('be.visible'); cy.get('.q-item > .q-item__label').should('include.text', '1101'); cy.get(ticketDescriptor).click(); cy.get('.descriptor').should('be.visible'); cy.get('.q-item > .q-item__label').should('include.text', '23'); cy.get(workerDescriptor).click(); cy.get('.descriptor').should('be.visible'); cy.get('.q-item > .q-item__label').should('include.text', '18'); }); it('should filter and download as CSV', () => { cy.get('input[name="ticketFk"]').type('23{enter}'); cy.get('#subToolbar > .q-btn').click(); cy.checkNotification('CSV downloaded successfully'); }); });