salix-front/test/cypress/integration/client/others/clientUnpaid.spec.js

21 lines
765 B
JavaScript
Raw Normal View History

2024-10-11 13:46:30 +00:00
/// <reference types="cypress" />
2024-10-16 07:21:57 +00:00
describe('Client unpaid', () => {
const UnpaidCheckBox = '[data-cy="UnpaidCheckBox"]';
2024-10-11 13:46:30 +00:00
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
});
2024-11-23 00:12:59 +00:00
it('Should add unpaid', () => {
cy.visit('#/customer/1102/others/unpaid');
2024-10-11 13:46:30 +00:00
cy.get('.q-card').should('be.visible');
cy.get(UnpaidCheckBox).click();
2024-11-23 00:12:59 +00:00
cy.dataCy('customerUnpaidAmount').find('input').type('100');
cy.dataCy('customerUnpaidDate').find('input').type('01/01/2001');
cy.get('.q-btn-group > .q-btn--standard').click();
cy.reload();
cy.get('.q-checkbox__inner')
.should('be.visible')
.and('not.have.class', 'q-checkbox__inner--active');
2024-10-11 13:46:30 +00:00
});
});