From 5c6eaa0ea2764450c139062c8f3709466cee1a19 Mon Sep 17 00:00:00 2001 From: withanage Date: Fri, 13 Dec 2024 09:14:48 +0100 Subject: [PATCH] #9658 user invitation cypress tests --- .../handlers/UserRoleAssignmentInviteRedirectController.php | 2 +- cypress/support/commands_new_workflow.js | 2 +- pages/invitation/InvitationHandler.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php b/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php index 6fa237e5fb9..319d9486bdd 100644 --- a/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php +++ b/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php @@ -53,7 +53,7 @@ public function acceptHandle(Request $request): void 'pageTitleDescription' => __('invitation.wizard.pageTitleDescription'), ]); $templateMgr->assign([ - 'pageComponent' => 'PageOJS', + 'pageComponent' => 'Page', ]); $templateMgr->display('invitation/acceptInvitation.tpl'); } diff --git a/cypress/support/commands_new_workflow.js b/cypress/support/commands_new_workflow.js index 74f4437997d..e8fc2b1e5e8 100644 --- a/cypress/support/commands_new_workflow.js +++ b/cypress/support/commands_new_workflow.js @@ -958,7 +958,7 @@ Cypress.Commands.add('confirmationByUser', user => { cy.get('#acceptUserDetails-familyName-control-fr_CA').type(user.familyName); cy.get('#acceptUserDetails-affiliation-control-fr_CA').type(user.country); cy.get('.pkpButton').contains('Save and continue').click(); - cy.get('.pkpButton').contains('Accept And Continue to OJS').click(); + cy.get('.pkpButton').contains('Accept And Continue to').click(); cy.get('.pkpButton').contains('View All Submissions').click(); }); diff --git a/pages/invitation/InvitationHandler.php b/pages/invitation/InvitationHandler.php index 28345859a73..8c20038440a 100644 --- a/pages/invitation/InvitationHandler.php +++ b/pages/invitation/InvitationHandler.php @@ -222,7 +222,7 @@ public function invite(array $args, Request $request): void : __('invitation.wizard.pageTitleDescription'), ]); $templateMgr->assign([ - 'pageComponent' => 'PageOJS', + 'pageComponent' => 'Page', 'breadcrumbs' => $breadcrumbs, 'pageWidth' => TemplateManager::PAGE_WIDTH_FULL, ]);