test(WorkerPda): refs #5926 replace confirmButton function with cy.clickConfirm for consistency
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Alex Moreno 2025-03-23 07:22:30 +01:00
parent 057a2520c0
commit 71c91c295c
1 changed files with 3 additions and 9 deletions

View File

@ -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();
}
});