From 918c8bea6007ef1e97e06afd30e92c0b4a3dc8d9 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 29 Nov 2024 22:46:26 +0100 Subject: [PATCH] test: input sage required --- test/cypress/integration/client/clientFiscalData.spec.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/cypress/integration/client/clientFiscalData.spec.js b/test/cypress/integration/client/clientFiscalData.spec.js index e337c26f8..05e0772e9 100644 --- a/test/cypress/integration/client/clientFiscalData.spec.js +++ b/test/cypress/integration/client/clientFiscalData.spec.js @@ -3,11 +3,16 @@ describe('Client fiscal data', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/fiscal-data', { + cy.visit('#/customer/1107/fiscal-data', { timeout: 5000, }); }); - it('Should load layout', () => { + it('Should change required value when change customer', () => { 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'); }); });