0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/client/others/clientUnpaid.spec.js

20 lines
714 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', () => {
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');
2024-11-23 00:12:59 +00:00
cy.get('.q-checkbox__inner').click();
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
});
});