diff --git a/test/cypress/integration/worker/workerPda.spec.js b/test/cypress/integration/worker/workerPda.spec.js index 8c539cf70ea..5d4496f187e 100644 --- a/test/cypress/integration/worker/workerPda.spec.js +++ b/test/cypress/integration/worker/workerPda.spec.js @@ -25,7 +25,7 @@ describe('WorkerPda', () => { creatNewPDA(); cy.dataCy('workerPda-send').click(); - confirmButton(); + cy.clickConfirm(); cy.checkNotification('PDF sended to signed'); //Download @@ -63,7 +63,7 @@ describe('WorkerPda', () => { cy.selectRows([1, 2]); cy.get('#st-actions').contains('Send').click(); - confirmButton(); + cy.clickConfirm(); cy.checkNotification('PDF sended to signed'); removeNewPDA(); @@ -77,12 +77,6 @@ describe('WorkerPda', () => { function removeNewPDA() { cy.dataCy('workerPda-remove').first().click(); - confirmButton(); - } - - function confirmButton() { - cy.get( - '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block', - ).click(); + cy.clickConfirm(); } });