Skip to content

Commit

Permalink
pkp/pkp-lib#9527 Adjust tests for dialog changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 12, 2024
1 parent bc0a8fc commit fff7899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cypress/tests/integration/SubmissionWizard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Submission Wizard', function() {
cy.contains(comments);
cy.get('button:contains("Submit")').click();
cy.contains('The submission, ' + title + ', will be submitted to Journal of Public Knowledge for editorial review.');
cy.get('.modal__footer button:contains("Submit")').click();
cy.get('div[role="dialog"] button:contains("Submit")').click();
cy.get('h1:contains("Submission complete")');

// View submission discussion and check participants
Expand Down Expand Up @@ -434,7 +434,7 @@ describe('Submission Wizard', function() {
// Submit
cy.get('button:contains("Submit")').click();
cy.contains('The submission, ' + submission.title + ', will be submitted to Journal of Public Knowledge for editorial review.');
cy.get('.modal__footer button:contains("Submit")').click();
cy.get('div[role="dialog"] button:contains("Submit")').click();
cy.get('h1:contains("Submission complete")');

cy.logout();
Expand Down Expand Up @@ -598,7 +598,7 @@ describe('Submission Wizard', function() {
cy.contains('The submission, ' + submission.title.en + ', will be submitted to Journal of Public Knowledge for editorial review.');
// delay is needed so previous changes gets pushed, before the submit should be triggered
cy.wait(500);
cy.get('.modal__footer button:contains("Submit")').click();
cy.get('div[role="dialog"] button:contains("Submit")').click();
cy.get('h1:contains("Submission complete")');

cy.logout();
Expand Down
2 changes: 1 addition & 1 deletion lib/pkp

0 comments on commit fff7899

Please sign in to comment.