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

19 lines
724 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 fiscal data', () => {
2024-10-11 13:46:30 +00:00
beforeEach(() => {
cy.viewport(1280, 720);
cy.login('developer');
2024-11-29 21:46:26 +00:00
cy.visit('#/customer/1107/fiscal-data', {
2024-10-11 13:46:30 +00:00
timeout: 5000,
});
});
2024-11-29 21:46:26 +00:00
it('Should change required value when change customer', () => {
2024-10-11 13:46:30 +00:00
cy.get('.q-card').should('be.visible');
2024-11-29 21:46:26 +00:00
cy.dataCy('sageTaxTypeFk').filter('input').should('not.have.attr', 'required');
cy.get('#searchbar input').clear();
cy.get('#searchbar input').type('1{enter}');
cy.get('.q-item > .q-item__label').should('have.text', ' #1');
cy.dataCy('sageTaxTypeFk').filter('input').should('have.attr', 'required');
2024-10-11 13:46:30 +00:00
});
});