30 lines
821 B
JavaScript
30 lines
821 B
JavaScript
|
/// <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);
|
||
|
});
|
||
|
});
|