Skip to content

Commit 74e206a

Browse files
committed
pkp/pkp-lib#10263 fix message in the test
1 parent ace516a commit 74e206a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cypress/tests/integration/Doi.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ describe('DOI tests', function() {
320320
cy.get('button:contains("Post")').click();
321321
cy.get('[data-cy="active-modal"] button:contains("Post")').click();
322322

323-
cy.get('div:contains("This version has been posted and can not be edited.")').should('exist');
323+
cy.get('div:contains("Warning: This version has been published. Editing it may impact the published content.")').should('exist');
324324

325325
// Confirm DOI created for Version 1
326326
// First publication assigns DOI as normal
@@ -365,7 +365,7 @@ describe('DOI tests', function() {
365365

366366
cy.get('button:contains("Post")').click();
367367
cy.get('div.pkpWorkflow__publishModal button:contains("Post")').click();
368-
cy.get('div:contains("This version has been posted and can not be edited.")').should('exist');
368+
cy.get('div:contains("Warning: This version has been published. Editing it may impact the published content.")').should('exist');
369369

370370
// Confirm DOI carried over from Version 1 to Version 2
371371
cy.visit('index.php/publicknowledge/dois');
@@ -506,7 +506,7 @@ describe('DOI tests', function() {
506506

507507
cy.get('button:contains("Post")').click();
508508
cy.get('div.pkpWorkflow__publishModal button:contains("Post")').click();
509-
cy.get('div:contains("This version has been posted and can not be edited.")').should('exist');
509+
cy.get('div:contains("Warning: This version has been published. Editing it may impact the published content.")').should('exist');
510510

511511
// Confirm "current publication" DOI is new
512512
cy.visit('index.php/publicknowledge/dois');

0 commit comments

Comments
 (0)