2024-11-26 11:24:02 +00:00
|
|
|
/// <reference types="cypress" />
|
2024-11-28 12:00:53 +00:00
|
|
|
describe('InvoiceOut negative bases', () => {
|
2025-02-21 07:20:35 +00:00
|
|
|
const getDescriptors = (opt) =>
|
|
|
|
`:nth-child(1) > [data-col-field="${opt}"] > .no-padding > .link`;
|
2025-02-17 12:53:28 +00:00
|
|
|
|
2024-11-26 11:24:02 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.viewport(1920, 1080);
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit(`/#/invoice-out/negative-bases`);
|
|
|
|
});
|
|
|
|
|
2025-02-17 12:53:28 +00:00
|
|
|
it('should open the posible descriptors', () => {
|
2025-02-21 07:20:35 +00:00
|
|
|
cy.get(getDescriptors('clientId')).click();
|
2025-02-17 12:53:28 +00:00
|
|
|
cy.get('.descriptor').should('be.visible');
|
|
|
|
cy.get('.q-item > .q-item__label').should('include.text', '1101');
|
2025-02-21 07:20:35 +00:00
|
|
|
cy.get(getDescriptors('ticketFk')).click();
|
2025-02-17 12:53:28 +00:00
|
|
|
cy.get('.descriptor').should('be.visible');
|
|
|
|
cy.get('.q-item > .q-item__label').should('include.text', '23');
|
2025-02-21 07:20:35 +00:00
|
|
|
cy.get(getDescriptors('workerName')).click();
|
2025-02-17 12:53:28 +00:00
|
|
|
cy.get('.descriptor').should('be.visible');
|
|
|
|
cy.get('.q-item > .q-item__label').should('include.text', '18');
|
|
|
|
});
|
|
|
|
|
2025-02-10 15:05:01 +00:00
|
|
|
it('should filter and download as CSV', () => {
|
2025-02-25 08:53:02 +00:00
|
|
|
cy.get('input[name="ticketFk"]').type('23{enter}');
|
2024-11-26 11:24:02 +00:00
|
|
|
cy.get('#subToolbar > .q-btn').click();
|
2024-12-16 06:46:36 +00:00
|
|
|
cy.checkNotification('CSV downloaded successfully');
|
2024-11-26 11:24:02 +00:00
|
|
|
});
|
|
|
|
});
|