salix-front/test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js

30 lines
821 B
JavaScript
Raw Normal View History

2023-11-09 09:29:28 +00:00
/// <reference types="cypress" />
describe('InvoiceInDueDay', () => {
const inputs = 'label input';
const inputBtns = 'label button';
const dialogBtns = '.q-dialog button';
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/due-day`);
});
it('should update the amount', () => {
cy.get(inputBtns).eq(0).click();
cy.get(inputs).eq(3).type(23);
cy.saveCard();
cy.get('.q-notification__message').should('have.text', 'Data saved');
});
it('should add a new row ', () => {
cy.addRow();
cy.get(inputs).eq(11).type(8);
cy.saveCard();
cy.get('.q-notification__message').should('have.text', 'Data saved');
});
it('should remove the first line', () => {
cy.removeRow(1);
});
});