From b55d57a111eef6d3a3d62830ab56723ada620237 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Fri, 13 Sep 2024 02:26:24 +0800 Subject: [PATCH] pkp/pkp-lib#9890 Set {force: true} when clicking on SubmissionWizard - cypress test --- cypress/tests/integration/SubmissionWizard.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/tests/integration/SubmissionWizard.cy.js b/cypress/tests/integration/SubmissionWizard.cy.js index d80c19f9fca..ea054d49745 100644 --- a/cypress/tests/integration/SubmissionWizard.cy.js +++ b/cypress/tests/integration/SubmissionWizard.cy.js @@ -384,7 +384,7 @@ describe('Submission Wizard', function() { cy.get('#titleAbstract-keywords-control-en').type('{downarrow}{enter}', {delay: 0}); cy.get('#citations-citationsRaw-control').type(submission.citations); - cy.get('.pkpSteps button:contains("Upload Files")').click(); + cy.get('.pkpSteps button:contains("Upload Files")').click({ force: true }); cy.uploadSubmissionFiles([ { 'file': 'dummy.pdf', @@ -583,7 +583,7 @@ describe('Submission Wizard', function() { // Add missing data cy.get('.pkpSteps button:contains("Details")').click(); cy.setTinyMceContent('titleAbstract-title-control-fr_CA', submission.title.fr_CA); - cy.get('.pkpSteps button:contains("Contributors")').click(); + cy.get('.pkpSteps button:contains("Contributors")').click({ force: true }); cy.get('.listPanel__itemTitle:contains("Carlo Corino")') .parents('.listPanel__item') .find('button:contains("Edit")')