From 7ade3097bfd9050877fc24282ae6931b89988a94 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Wed, 18 Sep 2024 21:26:11 +0800 Subject: [PATCH] pkp/pkp-lib#9890 Add {force:true} when clicking wizard step buttons --- cypress/support/commands.js | 2 +- cypress/tests/data/60-content/AfinkelSubmission.cy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 495488b91dd..01c0db19a35 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -83,7 +83,7 @@ Cypress.Commands.add('createSubmissionWithApi', (data, csrfToken) => { }) .then(() => { - cy.get('.pkpSteps__step__label:contains("Details")').click(); + cy.get('.pkpSteps__step__label:contains("Details")').click({force: true}); }) .addSubmissionAuthorsWithApi(api, data, csrfToken) .addChapters(data.chapters); diff --git a/cypress/tests/data/60-content/AfinkelSubmission.cy.js b/cypress/tests/data/60-content/AfinkelSubmission.cy.js index 2447892e6c6..64b3708ef6e 100644 --- a/cypress/tests/data/60-content/AfinkelSubmission.cy.js +++ b/cypress/tests/data/60-content/AfinkelSubmission.cy.js @@ -268,7 +268,7 @@ describe('Data suite tests', function() { cy.get('a').contains(submission.title).click(); // Go back to Details step and add chapters - cy.get('.pkpSteps__step__label:contains("Details")').click(); + cy.get('.pkpSteps__step__label:contains("Details")').click({force: true}); cy.addChapters(submission.chapters); cy.get('.submissionWizard__footer button').contains('Continue').click();