diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index a3c2667642..63541738eb 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -626,4 +626,4 @@ [features] -enable_new_submission_listing = Off \ No newline at end of file +enable_new_submission_listing = On \ No newline at end of file diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 7f8afd588e..4d13ec8776 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -8,7 +8,7 @@ */ import Api from '../../lib/pkp/cypress/support/api.js'; -import '../../lib/pkp/cypress/support/commands'; +import '../../lib/pkp/cypress/support/commands_new_workflow.js'; Cypress.Commands.add('addCategory', (categoryName, categoryPath) => { cy.get('div.pkp_grid_category a[id^=component-grid-settings-category-categorycategorygrid-addCategory-button-]').click(); diff --git a/cypress/tests/data/60-content/CkwantesSubmission.cy.js b/cypress/tests/data/60-content/CkwantesSubmission.cy.js index 5f5efc8375..7e0a2bda69 100644 --- a/cypress/tests/data/60-content/CkwantesSubmission.cy.js +++ b/cypress/tests/data/60-content/CkwantesSubmission.cy.js @@ -220,13 +220,13 @@ describe('Data suite: Ckwantes', function() { cy.get('a').contains('Create a new submission'); cy.get('a').contains('Return to your dashboard'); cy.get('a').contains('Review this submission').click(); - cy.get('h1:contains("' + submission.title + '")'); + cy.get('p:contains("' + submission.title + '")'); }); it('Publish submission', function() { cy.findSubmissionAsEditor('dbarnes', null, 'Kwantes'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/CmontgomerieSubmission.cy.js b/cypress/tests/data/60-content/CmontgomerieSubmission.cy.js index bcfe0fe7d1..b9bf6ed629 100644 --- a/cypress/tests/data/60-content/CmontgomerieSubmission.cy.js +++ b/cypress/tests/data/60-content/CmontgomerieSubmission.cy.js @@ -75,47 +75,50 @@ describe('Data suite: Cmontgomerie', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Montgomerie'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post")').should('be.visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); cy.logout(); // Unpost 1st version - cy.findSubmissionAsEditor('dbarnes', null, 'Montgomerie'); - cy.get('#publication-button').click(); - cy.get('div.pkpPublication button:contains("Unpost"):visible').click(); + cy.findSubmissionAsEditor('dbarnes', null, 'Montgomerie', null, 'Published'); + cy.openWorkflowMenu('Title & Abstract') + cy.get('button:contains("Unpost")').should('be.visible').click(); cy.get('div:contains("Are you sure you don\'t want this to be posted?")'); - cy.get('[role=dialog] button').contains('Unpost').click(); + cy.get('[data-cy=dialog] button').contains('Unpost').click(); // Edit metadata in 1st version - cy.get('#metadata-button').click(); + cy.openWorkflowMenu('Metadata') cy.get('#metadata-keywords-control-en').type('employees{enter}'); cy.wait(500); cy.get('#metadata-keywords-control-en').type('{enter}', {delay: 0}); - cy.get('#metadata button').contains('Save').click(); - cy.get('#metadata [role="status"]').contains('Saved'); + cy.get('button').contains('Save').click(); + cy.get('[role="status"]').contains('Saved'); cy.get('#metadata-keywords-selected-en').contains('employees'); cy.wait(1500); // Publish 1st version again - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post")').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); // Create 2nd version and change copyright holder - cy.get('div.pkpPublication button:contains("Create New Version"):visible').click(); + cy.get('button:contains("Create New Version")').should('be.visible').click(); cy.get('div:contains("Are you sure you want to create a new version?")'); cy.get('[role=dialog] button').contains('Yes').click(); - cy.get('#license-button').click(); + // TODO can be removed once we implement progress bars + cy.wait(5000); + + cy.openWorkflowMenu('Permissions & Disclosure'); cy.get('input[id^="publicationLicense-copyrightHolder-control-en"').clear() cy.get('input[id^="publicationLicense-copyrightHolder-control-en"').type('Craig Montgomerie', {delay: 0}); - cy.get('#license button').contains('Save').click(); - cy.get('#license [role="status"]').contains('Saved'); + cy.get('button').contains('Save').click(); + cy.get('[role="status"]').contains('Saved'); cy.wait(1500); // Publish 2nd version - cy.get('#publication button').contains('Post').click(); + cy.get('button').contains('Post').click(); cy.contains('All requirements have been met.'); cy.get('.pkpWorkflow__publishModal button').contains('Post').click(); }); diff --git a/cypress/tests/data/60-content/DdioufSubmission.cy.js b/cypress/tests/data/60-content/DdioufSubmission.cy.js index d1f2641f29..7b0fe4d7b8 100644 --- a/cypress/tests/data/60-content/DdioufSubmission.cy.js +++ b/cypress/tests/data/60-content/DdioufSubmission.cy.js @@ -57,7 +57,9 @@ describe('Data suite: Ddiouf', function() { cy.findSubmissionAsEditor('dbarnes', null, 'Diouf'); cy.clickDecision('Decline Submission'); cy.recordDecisionDecline(['Diaga Diouf']); - cy.get('.pkp_workflow_last_decision').contains('Submission declined.'); + // TODO re-add this check once its determined where to indicate it in new design + //cy.get('.pkp_workflow_last_decision').contains('Submission declined.'); + cy.openWorkflowMenu('Production'); cy.get('button').contains('Change decision').click(); cy.clickDecision('Revert Decline'); cy.recordDecisionRevertDecline(['Diaga Diouf']); diff --git a/cypress/tests/data/60-content/DphillipsSubmission.cy.js b/cypress/tests/data/60-content/DphillipsSubmission.cy.js index d071995732..5de51c6b3a 100644 --- a/cypress/tests/data/60-content/DphillipsSubmission.cy.js +++ b/cypress/tests/data/60-content/DphillipsSubmission.cy.js @@ -54,8 +54,8 @@ describe('Data suite: Dphillips', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Phillips'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post")').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); @@ -63,10 +63,10 @@ describe('Data suite: Dphillips', function() { it('Preprint is not available when unposted', function() { cy.login('dbarnes'); cy.visit('/index.php/publicknowledge/en/workflow/access/' + submission.id); - cy.get('#publication-button').click(); + cy.openWorkflowMenu('Title & Abstract') cy.get('button').contains('Unpost').click(); cy.contains('Are you sure you don\'t want this to be posted?'); - cy.get('div[role=dialog] button').contains('Unpost').click(); + cy.get('[data-cy=dialog] button').contains('Unpost').click(); cy.wait(1000); cy.visit('/index.php/publicknowledge/preprints'); cy.contains('Signalling Theory Dividends').should('not.exist'); @@ -82,8 +82,8 @@ describe('Data suite: Dphillips', function() { // Re-post it cy.login('dbarnes'); cy.visit('/index.php/publicknowledge/en/workflow/access/' + submission.id); - cy.get('#publication-button').click(); - cy.get('.pkpPublication button').contains('Post').click(); + cy.openWorkflowMenu('Title & Abstract') + cy.get('button').contains('Post').click(); cy.contains('All requirements have been met.'); cy.get('.pkpWorkflow__publishModal button').contains('Post').click(); }); diff --git a/cypress/tests/data/60-content/DsokoloffSubmission.cy.js b/cypress/tests/data/60-content/DsokoloffSubmission.cy.js index 8f231bf18d..390118f420 100644 --- a/cypress/tests/data/60-content/DsokoloffSubmission.cy.js +++ b/cypress/tests/data/60-content/DsokoloffSubmission.cy.js @@ -59,8 +59,8 @@ describe('Data suite: Dsokoloff', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Sokoloff'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/EostromSubmission.cy.js b/cypress/tests/data/60-content/EostromSubmission.cy.js index 356faa70ee..24c7414b03 100644 --- a/cypress/tests/data/60-content/EostromSubmission.cy.js +++ b/cypress/tests/data/60-content/EostromSubmission.cy.js @@ -70,8 +70,8 @@ describe('Data suite: Eostrom', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Ostrom'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/FpaglieriSubmission.cy.js b/cypress/tests/data/60-content/FpaglieriSubmission.cy.js index d9517c96ea..36034de3c3 100644 --- a/cypress/tests/data/60-content/FpaglieriSubmission.cy.js +++ b/cypress/tests/data/60-content/FpaglieriSubmission.cy.js @@ -54,8 +54,8 @@ describe('Data suite: Fpaglieri', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Paglieri'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/JmwandengaSubmission.cy.js b/cypress/tests/data/60-content/JmwandengaSubmission.cy.js index df10db1bd3..a14430e321 100644 --- a/cypress/tests/data/60-content/JmwandengaSubmission.cy.js +++ b/cypress/tests/data/60-content/JmwandengaSubmission.cy.js @@ -54,8 +54,8 @@ describe('Data suite: Jmwandenga', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Mwandenga'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/JnovakSubmission.cy.js b/cypress/tests/data/60-content/JnovakSubmission.cy.js index 4f9f8c9db5..8dadc92a3b 100644 --- a/cypress/tests/data/60-content/JnovakSubmission.cy.js +++ b/cypress/tests/data/60-content/JnovakSubmission.cy.js @@ -57,8 +57,8 @@ describe('Data suite: Jnovak', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Novak'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/KalkhafajiSubmission.cy.js b/cypress/tests/data/60-content/KalkhafajiSubmission.cy.js index f40d476758..6f2c03b158 100644 --- a/cypress/tests/data/60-content/KalkhafajiSubmission.cy.js +++ b/cypress/tests/data/60-content/KalkhafajiSubmission.cy.js @@ -70,8 +70,8 @@ describe('Data suite: Kalkhafaji', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Al-Khafaji'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/LchristopherSubmission.cy.js b/cypress/tests/data/60-content/LchristopherSubmission.cy.js index cff06357eb..5399b78d3a 100644 --- a/cypress/tests/data/60-content/LchristopherSubmission.cy.js +++ b/cypress/tests/data/60-content/LchristopherSubmission.cy.js @@ -58,8 +58,8 @@ describe('Data suite: Lchristopher', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Christopher'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/LkumiegaSubmission.cy.js b/cypress/tests/data/60-content/LkumiegaSubmission.cy.js index a5d4612555..80c0379ba2 100644 --- a/cypress/tests/data/60-content/LkumiegaSubmission.cy.js +++ b/cypress/tests/data/60-content/LkumiegaSubmission.cy.js @@ -57,8 +57,8 @@ describe('Data suite: Lkumiega', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Kumiega'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/PdanielSubmission.cy.js b/cypress/tests/data/60-content/PdanielSubmission.cy.js index 02747ba859..200924599c 100644 --- a/cypress/tests/data/60-content/PdanielSubmission.cy.js +++ b/cypress/tests/data/60-content/PdanielSubmission.cy.js @@ -66,8 +66,8 @@ describe('Data suite: Pdaniel', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Daniel'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/RbaiyewuSubmission.cy.js b/cypress/tests/data/60-content/RbaiyewuSubmission.cy.js index 93cb74e27f..ecb6d66063 100644 --- a/cypress/tests/data/60-content/RbaiyewuSubmission.cy.js +++ b/cypress/tests/data/60-content/RbaiyewuSubmission.cy.js @@ -54,8 +54,8 @@ describe('Data suite: Rbaiyewu', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Baiyewu'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/RrossiSubmission.cy.js b/cypress/tests/data/60-content/RrossiSubmission.cy.js index e340b0b4c8..31f11e520e 100644 --- a/cypress/tests/data/60-content/RrossiSubmission.cy.js +++ b/cypress/tests/data/60-content/RrossiSubmission.cy.js @@ -58,8 +58,8 @@ describe('Data suite: Rrossi', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Rossi'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/VkarbasizaedSubmission.cy.js b/cypress/tests/data/60-content/VkarbasizaedSubmission.cy.js index 50ab585e60..21b8c844b4 100644 --- a/cypress/tests/data/60-content/VkarbasizaedSubmission.cy.js +++ b/cypress/tests/data/60-content/VkarbasizaedSubmission.cy.js @@ -54,8 +54,8 @@ describe('Data suite: Vkarbasizaed', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Karbasizaed'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/VwilliamsonSubmission.cy.js b/cypress/tests/data/60-content/VwilliamsonSubmission.cy.js index f7095cb4fe..8417962875 100644 --- a/cypress/tests/data/60-content/VwilliamsonSubmission.cy.js +++ b/cypress/tests/data/60-content/VwilliamsonSubmission.cy.js @@ -59,8 +59,8 @@ describe('Data suite: Vwilliamson', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Williamson'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/data/60-content/ZwoodsSubmission.cy.js b/cypress/tests/data/60-content/ZwoodsSubmission.cy.js index 2a56d53ae5..4b0c3a5021 100644 --- a/cypress/tests/data/60-content/ZwoodsSubmission.cy.js +++ b/cypress/tests/data/60-content/ZwoodsSubmission.cy.js @@ -58,8 +58,8 @@ describe('Data suite: Zwoods', function() { cy.logout(); cy.findSubmissionAsEditor('dbarnes', null, 'Woods'); - cy.get('.pkp_workflow_decisions button:contains("Post the preprint")').click(); - cy.get('div.pkpPublication button:contains("Post"):visible').click(); + cy.get('button:contains("Post the preprint")').click(); + cy.get('button:contains("Post"):visible').click(); cy.get('div:contains("All requirements have been met. Are you sure you want to post this?")'); cy.get('[id^="publish"] button:contains("Post")').click(); }); diff --git a/cypress/tests/integration/Doi.cy.js b/cypress/tests/integration/Doi.cy.js index 231eb04e3d..4108b2c741 100644 --- a/cypress/tests/integration/Doi.cy.js +++ b/cypress/tests/integration/Doi.cy.js @@ -304,18 +304,21 @@ describe('DOI tests', function() { cy.get('#doisSetup [role="status"]').contains('Saved'); //Go to publication and rollback to first publication being unpublished, then republish first publication - cy.get('nav').contains('Submissions').click(); - cy.get('button:contains("Archived")').click(); - cy.get(`div#archive .listPanel__item:contains("${articleTitle}") a:contains("View")`).click(); + cy.get('nav').contains('Dashboards').click(); + cy.get('nav').contains('Published').click(); + cy.contains('table tr', articleTitle).within(() => { + cy.get('button').contains('View').click() + }) - cy.get('button#publication-button').click(); + + cy.openWorkflowMenu('Title & Abstract') cy.get('button:contains("Unpost")').click(); - cy.get('div[role="dialog"] button:contains("Unpost")').click(); + cy.get('[data-cy="dialog"] button:contains("Unpost")').click(); cy.get('button:contains("Unpost")').should('not.exist'); cy.get('button:contains("Post")').click(); - cy.get('div.pkpWorkflow__publishModal button:contains("Post")').click(); + cy.get('[data-cy="active-modal"] button:contains("Post")').click(); cy.get('div:contains("This version has been posted and can not be edited.")').should('exist'); @@ -349,14 +352,16 @@ describe('DOI tests', function() { cy.log("Check DOI versioning off copies previous DOI for subsequent versions"); // Publish Version 2 - cy.get('nav').contains('Submissions').click(); - cy.get('button:contains("Archived")').click(); - cy.get(`div#archive .listPanel__item:contains("${articleTitle}") a:contains("View")`).click(); - cy.get('button#publication-button').click(); + cy.get('nav').contains('Dashboards').click(); + cy.get('nav').contains('Published').click(); + cy.contains('table tr', articleTitle).within(() => { + cy.get('button').contains('View').click() + }) + cy.openWorkflowMenu('Title & Abstract') cy.get('button:contains("Create New Version")').click(); - cy.get('div[role="dialog"]').contains('Create New Version'); - cy.get('div[role="dialog"] button:contains("Yes")').click(); + cy.get('[data-cy="active-modal"]').contains('Create New Version'); + cy.get('[data-cy="dialog"] button:contains("Yes")').click(); cy.get('button:contains("Post")').click(); cy.get('div.pkpWorkflow__publishModal button:contains("Post")').click(); @@ -487,14 +492,16 @@ describe('DOI tests', function() { // Check creates new version // Go to publication and publish Version 2 - cy.get('nav').contains('Submissions').click(); - cy.get('button:contains("Archived")').click(); - cy.get(`div#archive .listPanel__item:contains("${articleTitle}") a:contains("View")`).click(); - cy.get('button#publication-button').click(); + cy.get('nav').contains('Dashboards').click(); + cy.get('nav').contains('Published').click(); + cy.contains('table tr', articleTitle).within(() => { + cy.get('button').contains('View').click() + }) + cy.openWorkflowMenu('Title & Abstract') // We have to unpost it first cy.get('button:contains("Unpost")').click(); - cy.get('div[role="dialog"] button:contains("Unpost")').click(); + cy.get('[data-cy="dialog"] button:contains("Unpost")').click(); cy.get('button:contains("Post")').should('not.exist'); cy.get('button:contains("Post")').click(); diff --git a/index.php b/index.php index 49a9b4edc9..5e75bf6555 100644 --- a/index.php +++ b/index.php @@ -12,10 +12,18 @@ */ use APP\core\Application; +use PKP\config\Config; // Initialize global environment define('INDEX_FILE_LOCATION', __FILE__); require_once './lib/pkp/includes/bootstrap.php'; +// Temporarly enable enable_new_submission_listing for OJS, until OMP&OPS catch up +// Its still possible to disable it with explicitely setting it to 'Off' +if(Config::getVar('features', 'enable_new_submission_listing') === null) { + $configData = & Config::getData(); + $configData['features']['enable_new_submission_listing'] = true; +} + // Serve the request Application::get()->execute(); diff --git a/registry/uiLocaleKeysBackend.json b/registry/uiLocaleKeysBackend.json index cb9cdf424e..00842e22ae 100644 --- a/registry/uiLocaleKeysBackend.json +++ b/registry/uiLocaleKeysBackend.json @@ -130,7 +130,6 @@ "dashboard.stage.copyediting", "dashboard.stage.production", "dashboard.stage.published", - "dashboard.stage.review", "dashboard.stage.reviewWithRound", "dashboard.stage.scheduledForPublication", "dashboard.stage.submission", @@ -183,6 +182,7 @@ "editor.submission.addStageParticipant", "editor.submission.decision.decline", "editor.submission.decision.requestRevisions", + "editor.submission.decision.revertDecline", "editor.submission.editStageParticipant", "editor.submission.removeStageParticipant", "editor.submission.removeStageParticipant.description", @@ -192,6 +192,7 @@ "editor.submission.search", "editor.submission.stageParticipants", "editor.submission.uploadSelectFiles", + "editor.submission.workflowDecision.changeDecision", "editor.submission.workflowDecision.submission.published", "editor.submission.workflowDecision.submission.underReview", "editor.submissionArchive.confirmDelete",