diff --git a/test/cypress/integration/customer/customerSms.spec.js b/test/cypress/integration/customer/customerSms.spec.js new file mode 100644 index 000000000..731522a5c --- /dev/null +++ b/test/cypress/integration/customer/customerSms.spec.js @@ -0,0 +1,12 @@ +/// +describe('Client notes', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/sms'); + }); + it('Should load layout', () => { + cy.get('.q-page').should('be.visible'); + cy.get('.q-page > :nth-child(2) > :nth-child(1)').should('be.visible'); + }); +}); diff --git a/test/cypress/integration/customer/customerWebAccess.spec.js b/test/cypress/integration/customer/customerWebAccess.spec.js index 47f9efa4c..6803336a3 100644 --- a/test/cypress/integration/customer/customerWebAccess.spec.js +++ b/test/cypress/integration/customer/customerWebAccess.spec.js @@ -3,11 +3,26 @@ describe('Client web-access', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/web-access', { - timeout: 5000, - }); }); - it('Should load layout', () => { + it('Should test buttons ', () => { + cy.visit('#/customer/1101/web-access'); + cy.get('.q-page').should('be.visible'); + cy.get('#formModel').should('be.visible'); cy.get('.q-card').should('be.visible'); + cy.get('.q-btn-group > :nth-child(1)').should('not.be.disabled'); + cy.get('.q-checkbox__inner').click(); + cy.get('.q-btn-group > .q-btn--standard.q-btn--actionable').should( + 'not.be.disabled' + ); + cy.get('.q-btn-group > .q-btn--flat').should('not.be.disabled'); + cy.get('.q-btn-group > :nth-child(1)').click(); + cy.get('.q-dialog__inner > .q-card > :nth-child(1)') + .should('be.visible') + .find('.text-h6') + .should('have.text', 'Change password'); + }); + it('Should disabled buttons', () => { + cy.visit('#/customer/1110/web-access'); + cy.get('.q-btn-group > :nth-child(1)').should('be.disabled'); }); }); diff --git a/test/cypress/integration/customer/others/customerUnpaid.spec.js b/test/cypress/integration/customer/others/customerUnpaid.spec.js index 9972ba0e9..ab6bc18bf 100644 --- a/test/cypress/integration/customer/others/customerUnpaid.spec.js +++ b/test/cypress/integration/customer/others/customerUnpaid.spec.js @@ -3,11 +3,17 @@ describe('Client unpaid', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/unpaid', { - timeout: 5000, - }); }); - it('Should load layout', () => { + it('Should add unpaid', () => { + cy.visit('#/customer/1102/others/unpaid'); cy.get('.q-card').should('be.visible'); + 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'); }); });