0
0
Fork 0

test: input sage required

This commit is contained in:
Javier Segarra 2024-11-29 22:46:26 +01:00
parent 0c7be99ecb
commit 918c8bea60
1 changed files with 7 additions and 2 deletions

View File

@ -3,11 +3,16 @@ describe('Client fiscal data', () => {
beforeEach(() => { beforeEach(() => {
cy.viewport(1280, 720); cy.viewport(1280, 720);
cy.login('developer'); cy.login('developer');
cy.visit('#/customer/1110/fiscal-data', { cy.visit('#/customer/1107/fiscal-data', {
timeout: 5000, timeout: 5000,
}); });
}); });
it('Should load layout', () => { it('Should change required value when change customer', () => {
cy.get('.q-card').should('be.visible'); cy.get('.q-card').should('be.visible');
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');
}); });
}); });