From 5c5dcb1d35c0d1c8203c9fe3a1222d367a68f486 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 3 Mar 2025 13:46:30 +0100 Subject: [PATCH] fix: refs #8583 workerBusiness e2e --- .../cypress/integration/worker/workerBusiness.spec.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/cypress/integration/worker/workerBusiness.spec.js b/test/cypress/integration/worker/workerBusiness.spec.js index abf591d68..01da0315f 100644 --- a/test/cypress/integration/worker/workerBusiness.spec.js +++ b/test/cypress/integration/worker/workerBusiness.spec.js @@ -1,5 +1,7 @@ describe('WorkerBusiness', () => { const saveBtn = '.q-mt-lg > .q-btn--standard'; + const contributionCode = `Representantes de comercio`; + const contractType = `INDEFINIDO A TIEMPO COMPLETO`; const Business = { 'Start Date': { val: '26-12-2002', type: 'date' }, @@ -9,8 +11,8 @@ describe('WorkerBusiness', () => { 'Work Calendar': { val: `General schedule`, type: 'select' }, 'Work Center': { val: `Silla`, type: 'select' }, 'Contract Category': { val: `INFORMATICA`, type: 'select' }, - 'Contribution Code': { val: `Representantes de comercio`, type: 'select' }, - 'Contract Type': { val: `INDEFINIDO A TIEMPO COMPLETO`, type: 'select' }, + 'Contribution Code': { val: contributionCode, type: 'select' }, + 'Contract Type': { val: contractType, type: 'select' }, 'Transport Workers Salary': { val: `1000` }, }; @@ -22,7 +24,10 @@ describe('WorkerBusiness', () => { }); it('should throw an error if a pay method has not been selected', () => { - cy.fillInForm(Business); + // cy.fillInForm(...Business); + cy.fillInForm({ + ...Business, + }); cy.get(saveBtn).click(); cy.checkNotification('Data created'); });