test(WorkerPda): refs #5926 replace confirmButton function with cy.clickConfirm for consistency
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
057a2520c0
commit
71c91c295c
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue