salix-front/test/cypress/integration/client/clientWebAccess.spec.js

29 lines
1.1 KiB
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 web-access', () => {
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 test buttons ', () => {
cy.visit('#/customer/1101/web-access');
cy.get('.q-page').should('be.visible');
cy.get('#formModel').should('be.visible');
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-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');
2024-10-11 13:46:30 +00:00
});
});