diff --git a/test/cypress/integration/worker/workerPit.spec.js b/test/cypress/integration/worker/workerPit.spec.js index 8e8514193..a130042c4 100644 --- a/test/cypress/integration/worker/workerPit.spec.js +++ b/test/cypress/integration/worker/workerPit.spec.js @@ -14,6 +14,7 @@ describe('WorkerPit', () => { const adoptionYearInput = '[data-cy="Adoption Year_input"]'; const adoptionYear = '2004'; const saveRelative = '[data-cy="workerPitRelativeSaveBtn"]'; + const savePIT = '#st-actions > .q-btn-group > .q-btn--standard'; beforeEach(() => { cy.viewport(1920, 1080); @@ -26,7 +27,7 @@ describe('WorkerPit', () => { cy.get(childPensionInput).type(childPension); cy.get(spouseNifInput).type(spouseNif); cy.get(spousePensionInput).type(spousePension); - cy.saveCard(); + cy.get(savePIT).click(); }); it('delete relative', () => {