From ed5b4eed1a7e318626ca1ac998335614d816738f Mon Sep 17 00:00:00 2001
From: zolhorvath <zolhorvath@users.noreply.github.com>
Date: Thu, 3 Oct 2024 12:23:26 +0200
Subject: [PATCH] ISAICP-9126: Update subscription form lead text of closed
 collections with CoC

---
 .../collection/collection.membership_signup_leave.feature       | 2 +-
 .../custom/collection/src/Form/SubscribeToCollectionForm.php    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/features/collection/collection.membership_signup_leave.feature b/tests/features/collection/collection.membership_signup_leave.feature
index 69c3b726e6..90c95b7236 100644
--- a/tests/features/collection/collection.membership_signup_leave.feature
+++ b/tests/features/collection/collection.membership_signup_leave.feature
@@ -84,7 +84,7 @@ Feature: Joining and leaving collections through the web interface
     # There is a Code of Conduct document, what the user must accept before
     # requesting for membership, so the button text must not change.
     Then I should see the button "Join this collection" in the Header region
-    And I should see the text "To complete your membership, we need to make sure you agree with our Code of conduct. This helps us maintain a safe and respectful environment for all members of Closed collection with public CoC"
+    And I should see the text "To validate your membership and send it for approval, please tick the box agreeing with the Code of conduct. This helps us maintain a safe and respectful environment for all members of Closed collection with public CoC"
     And I should not see the following lines of text:
       | You have joined the collection and you are now able to publish content in it. |
       | When your membership is approved you will be able to publish content in it.   |
diff --git a/web/modules/custom/collection/src/Form/SubscribeToCollectionForm.php b/web/modules/custom/collection/src/Form/SubscribeToCollectionForm.php
index 6a467ba0e4..a1cbca70c6 100644
--- a/web/modules/custom/collection/src/Form/SubscribeToCollectionForm.php
+++ b/web/modules/custom/collection/src/Form/SubscribeToCollectionForm.php
@@ -247,7 +247,7 @@ protected function getCodeOfConductComponents(?RdfInterface $collection): ?array
     $codeOfConductComponents['code_of_conduct_lead'] = [
       '#type' => 'item',
       '#markup' => $this->t(
-        'To complete your membership, we need to make sure you agree with our <a href=":code-of-conduct-url" target="_blank">Code of conduct</a>. This helps us maintain a safe and respectful environment for all members of @group-label',
+        'To validate your membership and send it for approval, please tick the box agreeing with the <a href=":code-of-conduct-url" target="_blank">Code of conduct</a>. This helps us maintain a safe and respectful environment for all members of @group-label.',
         $codeOfConductArgs,
       ),
       '#weight' => -5,
-- 
GitLab