From 670821d6c7eede61651e9785ac59c7a6fcf7a940 Mon Sep 17 00:00:00 2001 From: kskourtis1 Date: Mon, 8 Jun 2026 15:13:33 +0100 Subject: [PATCH] APIS-7515: Organisation Admins/RI Get Confirmation Email When New Admin/Team Member Is Added or Removed APIS-7515: Organisation Admins/RI Get Confirmation Email When New Admin/Team Member Is Added or Removed --- .../templates/api/ApiTemplates.scala | 4 ++-- ...ddedMemberToOrganisationNotification.scala.html | 9 +++++---- ...AddedMemberToOrganisationNotification.scala.txt | 6 ++++-- ...eredMemberToOrganisationConfirmation.scala.html | 7 +++---- ...teredMemberToOrganisationConfirmation.scala.txt | 8 +++----- ...eredMemberToOrganisationConfirmation.scala.html | 12 ++++++------ ...teredMemberToOrganisationConfirmation.scala.txt | 12 ++++++------ ...edMemberFromOrganisationConfirmation.scala.html | 6 +++--- ...vedMemberFromOrganisationConfirmation.scala.txt | 6 +++--- ...edMemberFromOrganisationNotification.scala.html | 9 +++++---- ...vedMemberFromOrganisationNotification.scala.txt | 6 ++++-- ...AddedMemberToOrganisationNotificationSpec.scala | 14 ++++++++------ ...teredMemberToOrganisationConfirmationSpec.scala | 4 ---- ...teredMemberToOrganisationConfirmationSpec.scala | 12 ++++++------ ...vedMemberFromOrganisationConfirmationSpec.scala | 4 ++-- ...vedMemberFromOrganisationNotificationSpec.scala | 14 ++++++++------ .../templates/api/ApiTemplatesSpec.scala | 4 ++-- 17 files changed, 70 insertions(+), 67 deletions(-) diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplates.scala index 53ac955f3..3a60b6874 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplates.scala +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplates.scala @@ -258,7 +258,7 @@ object ApiTemplates { templateId = "apiAddedMemberToOrganisationNotification", fromAddress = extractFromAddress, service = ApiDeveloperHub, - subject = "User added to your organisation in the HMRC Developer Hub", + subject = "A user has been added to your organisation in the HMRC Developer Hub", plainTemplate = txt.apiAddedMemberToOrganisationNotification.f, htmlTemplate = html.apiAddedMemberToOrganisationNotification.f, priority = Some(MessagePriority.Urgent) @@ -276,7 +276,7 @@ object ApiTemplates { templateId = "apiRemovedMemberFromOrganisationNotification", fromAddress = extractFromAddress, service = ApiDeveloperHub, - subject = "User removed from your organisation in the HMRC Developer Hub", + subject = "A user has been removed from your organisation in the HMRC Developer Hub", plainTemplate = txt.apiRemovedMemberFromOrganisationNotification.f, htmlTemplate = html.apiRemovedMemberFromOrganisationNotification.f, priority = Some(MessagePriority.Urgent) diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.html index 7e1829d23..0db130970 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.html +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.html @@ -15,9 +15,10 @@ *@ @(params: Map[String, Any]) -@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "User added to your organisation in the HMRC Developer Hub") { -

This user has been added to the @{params("organisationName")} organisation.

-

Email address: @{params("emailAddress")}

-

Role: @{params("role")}

+@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "A user has been added to your organisation in the HMRC Developer Hub") { +

A user has been added to @{params("organisationName")} organisation.

+

Details

+

Email address: @{params("emailAddress")}

+

Role: @{params("role")}

HMRC Developer Hub

} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.txt index b30258e9c..c29069d0e 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.txt +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedMemberToOrganisationNotification.scala.txt @@ -1,6 +1,8 @@ -@(params: Map[String, Any])User added to your organisation in the HMRC Developer Hub +@(params: Map[String, Any])A user has been added to your organisation in the HMRC Developer Hub -This user has been added to the @{params("organisationName")} organisation. +A user has been added to @{params("organisationName")} organisation. + +Details Email address: @{params("emailAddress")} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.html index ed36c20f8..a993e84dd 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.html +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.html @@ -17,9 +17,8 @@ @(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "You've been added to an organisation in the HMRC Developer Hub") {

@{params("organisationName")} has added you to their organisation.

-

Sign in to the HMRC Developer Hub for access.

-

How to get help

-

Contact an admin at @{params("organisationName")} if you have questions about your access.

-

Or create a support request on the Developer Hub if you need help signing in.

+

Sign in to the HMRC Developer Hub to access your organisation’s applications.

+

Get help and support

+

Contact an admin at @{params("organisationName")} if you have questions about your access. If you need help signing in, create a support request on the Developer Hub.

HMRC Developer Hub

} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.txt index 78c4d6237..f161db76e 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.txt +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedRegisteredMemberToOrganisationConfirmation.scala.txt @@ -2,13 +2,11 @@ @{params("organisationName")} has added you to their organisation. -Sign in to the HMRC Developer Hub for access. +Sign in to the HMRC Developer Hub to access your organisation’s applications. -How to get help +Get help and support -Contact an admin at @{params("organisationName")} if you have questions about your access. - -Or create a support request on the Developer Hub if you need help signing in. +Contact an admin at @{params("organisationName")} if you have questions about your access. If you need help signing in, create a support request on the Developer Hub. HMRC Developer Hub diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.html index f82320d97..3f865bd6e 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.html +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.html @@ -17,13 +17,13 @@ @(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "You've been added to an organisation in the HMRC Developer Hub") {

@{params("organisationName")} has added you to their organisation.

-

Follow these steps to register for a Developer Hub account and access the organisation.

+

Complete the steps below to register for a Developer Hub account and access your organisation’s applications.

    -
  1. Open a browser and search for 'HMRC Developer Hub'.
  2. -
  3. On the homepage select 'Get an account' to register.
  4. +
  5. Search online for ‘HMRC Developer Hub’.
  6. +
  7. Click the Get an account button to register for a developer account.
  8. +
  9. Complete the form and click the Register button.
-

How to get help

-

Contact an admin at @{params("organisationName")} if you have questions about your access.

-

Or create a support request on the Developer Hub if you need help signing in.

+

Get help and support

+

Contact an admin at @{params("organisationName")} if you have questions about your access. If you need help signing in, create a support request on the Developer Hub.

HMRC Developer Hub

} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.txt index 56ec46072..1c402f987 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.txt +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiAddedUnregisteredMemberToOrganisationConfirmation.scala.txt @@ -2,17 +2,17 @@ @{params("organisationName")} has added you to their organisation. -Follow these steps to register for a Developer Hub account and access the organisation. +Complete the steps below to register for a Developer Hub account and access your organisation’s applications. - 1. Open a browser and search for 'HMRC Developer Hub'. + 1. Search online for ‘HMRC Developer Hub’. - 2. On the homepage select 'Get an account' to register. + 2. Click the Get an account button to register for a developer account. -How to get help + 3. Complete the form and click the Register button. -Contact an admin at @{params("organisationName")} if you have questions about your access. +Get help and support -Or create a support request on the Developer Hub if you need help signing in. +Contact an admin at @{params("organisationName")} if you have questions about your access. If you need help signing in, create a support request on the Developer Hub. HMRC Developer Hub diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.html index 8a5d1ae45..0f469c447 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.html +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.html @@ -17,8 +17,8 @@ @(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "You've been removed from an organisation in the HMRC Developer Hub") {

@{params("organisationName")} has removed you from their organisation.

-

You no longer have access to their Production applications.

-

How to get help

-

Contact an admin at @{params("organisationName")} if you have questions about being removed from this organisation.

+

You no longer have access to the Production applications.

+

Get help and support

+

Contact an admin at @{params("organisationName")} if you have questions about this change.

HMRC Developer Hub

} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.txt index 4d6ac3321..c99b4fdaa 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.txt +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationConfirmation.scala.txt @@ -2,11 +2,11 @@ @{params("organisationName")} has removed you from their organisation. -You no longer have access to their Production applications. +You no longer have access to the Production applications. -How to get help +Get help and support -Contact an admin at @{params("organisationName")} if you have questions about being removed from this organisation. +Contact an admin at @{params("organisationName")} if you have questions about this change. HMRC Developer Hub diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.html index 754d1e82a..7f59d8a91 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.html +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.html @@ -15,10 +15,11 @@ *@ @(params: Map[String, Any]) -@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "User removed from your organisation in the HMRC Developer Hub") { -

This user has been removed from the @{params("organisationName")} organisation.

-

Email address: @{params("emailAddress")}

-

Role: @{params("role")}

+@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "A user has been removed from your organisation in the HMRC Developer Hub") { +

A user has been removed from @{params("organisationName")} organisation.

+

Details

+

Email address: @{params("emailAddress")}

+

Role: @{params("role")}

They no longer have access to your organisation's Production applications.

HMRC Developer Hub

} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.txt index 86d4445dd..3ce60f878 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.txt +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/api/apiRemovedMemberFromOrganisationNotification.scala.txt @@ -1,9 +1,11 @@ -@(params: Map[String, Any])User removed from your organisation in the HMRC Developer Hub +@(params: Map[String, Any])A user has been removed from your organisation in the HMRC Developer Hub -This user has been removed from the @{params("organisationName")} organisation. +A user has been removed from @{params("organisationName")} organisation. Email address: @{params("emailAddress")} +Details: + Role: @{params("role")} They no longer have access to your organisation's Production applications. diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedMemberToOrganisationNotificationSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedMemberToOrganisationNotificationSpec.scala index 3582eaf5d..6444d2d67 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedMemberToOrganisationNotificationSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedMemberToOrganisationNotificationSpec.scala @@ -40,14 +40,16 @@ class apiAddedMemberToOrganisationNotificationSpec extends AnyWordSpec with Matc "render as" in new TestCase { val renderedHtml = api.html.apiAddedMemberToOrganisationNotification.render(templateParams) renderedHtml.contentType should include("text/html") - renderedHtml.body should include("User added to your organisation in the HMRC Developer Hub") + renderedHtml.body should include("A user has been added to your organisation in the HMRC Developer Hub") renderedHtml.body should include( - s"

This user has been added to the $organisationName organisation.

" + s"

A user has been added to $organisationName organisation.

" ) renderedHtml.body should include( - s"

Email address: $emailAddress

" + s"

Email address: $emailAddress

" + ) + renderedHtml.body should include( + s"

Role: $role

" ) - renderedHtml.body should include(s"

Role: $role

") } } @@ -55,8 +57,8 @@ class apiAddedMemberToOrganisationNotificationSpec extends AnyWordSpec with Matc "render as" in new TestCase { val renderedTxt = api.txt.apiAddedMemberToOrganisationNotification.render(templateParams) renderedTxt.contentType should include("text/plain") - renderedTxt.body should include("User added to your organisation in the HMRC Developer Hub") - renderedTxt.body should include(s"This user has been added to the $organisationName organisation.") + renderedTxt.body should include("A user has been added to your organisation in the HMRC Developer Hub") + renderedTxt.body should include(s"A user has been added to $organisationName organisation.") renderedTxt.body should include(s"Email address: $emailAddress") renderedTxt.body should include(s"Role: $role") } diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedRegisteredMemberToOrganisationConfirmationSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedRegisteredMemberToOrganisationConfirmationSpec.scala index 2e5fca6b9..cf9ce3571 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedRegisteredMemberToOrganisationConfirmationSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedRegisteredMemberToOrganisationConfirmationSpec.scala @@ -39,9 +39,6 @@ class apiAddedRegisteredMemberToOrganisationConfirmationSpec extends AnyWordSpec renderedHtml.body should include( s"

$organisationName has added you to their organisation.

" ) - renderedHtml.body should include( - "

Sign in to the HMRC Developer Hub for access.

" - ) renderedHtml.body should include("

HMRC Developer Hub

") } } @@ -51,7 +48,6 @@ class apiAddedRegisteredMemberToOrganisationConfirmationSpec extends AnyWordSpec val renderedTxt = api.txt.apiAddedRegisteredMemberToOrganisationConfirmation.render(templateParams) renderedTxt.contentType should include("text/plain") renderedTxt.body should include(s"$organisationName has added you to their organisation.") - renderedTxt.body should include("Sign in to the HMRC Developer Hub for access.") renderedTxt.body should include("HMRC Developer Hub") } } diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedUnregisteredMemberToOrganisationConfirmationSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedUnregisteredMemberToOrganisationConfirmationSpec.scala index 6591a5438..ddf9f341a 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedUnregisteredMemberToOrganisationConfirmationSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiAddedUnregisteredMemberToOrganisationConfirmationSpec.scala @@ -40,13 +40,13 @@ class apiAddedUnregisteredMemberToOrganisationConfirmationSpec extends AnyWordSp s"

$organisationName has added you to their organisation.

" ) renderedHtml.body should include( - "

Follow these steps to register for a Developer Hub account and access the organisation.

" + "

Complete the steps below to register for a Developer Hub account and access your organisation’s applications.

" ) renderedHtml.body should include( - s"
  • Open a browser and search for 'HMRC Developer Hub'.
  • " + s"
  • Search online for ‘HMRC Developer Hub’.
  • " ) renderedHtml.body should include( - s"
  • On the homepage select 'Get an account' to register.
  • " + s"
  • Click the Get an account button to register for a developer account.
  • " ) renderedHtml.body should include("

    HMRC Developer Hub

    ") } @@ -58,10 +58,10 @@ class apiAddedUnregisteredMemberToOrganisationConfirmationSpec extends AnyWordSp renderedTxt.contentType should include("text/plain") renderedTxt.body should include(s"$organisationName has added you to their organisation.") renderedTxt.body should include( - "Follow these steps to register for a Developer Hub account and access the organisation." + "Complete the steps below to register for a Developer Hub account and access your organisation’s applications." ) - renderedTxt.body should include("1. Open a browser and search for 'HMRC Developer Hub'.") - renderedTxt.body should include("2. On the homepage select 'Get an account' to register.") + renderedTxt.body should include("1. Search online for ‘HMRC Developer Hub’.") + renderedTxt.body should include("2. Click the Get an account button to register for a developer account.") renderedTxt.body should include("HMRC Developer Hub") } } diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationConfirmationSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationConfirmationSpec.scala index dd7545ca3..ccc6269df 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationConfirmationSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationConfirmationSpec.scala @@ -42,7 +42,7 @@ class ApiRemovedMemberFromOrganisationConfirmationSpec extends AnyWordSpecLike w s"

    $organisationName has removed you from their organisation.

    " ) renderedHtml.body should include( - "

    You no longer have access to their Production applications.

    " + "

    You no longer have access to the Production applications.

    " ) renderedHtml.body should include("

    HMRC Developer Hub

    ") } @@ -54,7 +54,7 @@ class ApiRemovedMemberFromOrganisationConfirmationSpec extends AnyWordSpecLike w renderedTxt.contentType should include("text/plain") renderedTxt.body should include("You've been removed from an organisation in the HMRC Developer Hub") renderedTxt.body should include(s"$organisationName has removed you from their organisation.") - renderedTxt.body should include("You no longer have access to their Production applications.") + renderedTxt.body should include("You no longer have access to the Production applications.") renderedTxt.body should include("HMRC Developer Hub") } } diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationNotificationSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationNotificationSpec.scala index bd8314c23..07f40c993 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationNotificationSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiRemovedMemberFromOrganisationNotificationSpec.scala @@ -41,14 +41,16 @@ class ApiRemovedMemberFromOrganisationNotificationSpec extends AnyWordSpecLike w "render as" in new TestCase { val renderedHtml = api.html.apiRemovedMemberFromOrganisationNotification.render(templateParams) renderedHtml.contentType should include("text/html") - renderedHtml.body should include("User removed from your organisation in the HMRC Developer Hub") + renderedHtml.body should include("A user has been removed from your organisation in the HMRC Developer Hub") renderedHtml.body should include( - s"

    This user has been removed from the $organisationName organisation.

    " + s"

    A user has been removed from $organisationName organisation.

    " ) renderedHtml.body should include( - s"

    Email address: $emailAddress

    " + s"

    Email address: $emailAddress

    " + ) + renderedHtml.body should include( + s"

    Role: $role

    " ) - renderedHtml.body should include(s"

    Role: $role

    ") renderedHtml.body should include( "

    They no longer have access to your organisation's Production applications.

    " ) @@ -59,8 +61,8 @@ class ApiRemovedMemberFromOrganisationNotificationSpec extends AnyWordSpecLike w "render as" in new TestCase { val renderedTxt = api.txt.apiRemovedMemberFromOrganisationNotification.render(templateParams) renderedTxt.contentType should include("text/plain") - renderedTxt.body should include("User removed from your organisation in the HMRC Developer Hub") - renderedTxt.body should include(s"This user has been removed from the $organisationName organisation.") + renderedTxt.body should include("A user has been removed from your organisation in the HMRC Developer Hub") + renderedTxt.body should include(s"A user has been removed from $organisationName organisation.") renderedTxt.body should include(s"Email address: $emailAddress") renderedTxt.body should include(s"Role: $role") renderedTxt.body should include("They no longer have access to your organisation's Production applications.") diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplatesSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplatesSpec.scala index dc2254604..c22f44626 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplatesSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/api/ApiTemplatesSpec.scala @@ -223,7 +223,7 @@ class ApiTemplatesSpec extends AnyWordSpecLike with Matchers with OptionValues w validateTemplate( templateId = "apiAddedMemberToOrganisationNotification", - expectedSubject = "User added to your organisation in the HMRC Developer Hub" + expectedSubject = "A user has been added to your organisation in the HMRC Developer Hub" ) validateTemplate( @@ -233,7 +233,7 @@ class ApiTemplatesSpec extends AnyWordSpecLike with Matchers with OptionValues w validateTemplate( templateId = "apiRemovedMemberFromOrganisationNotification", - expectedSubject = "User removed from your organisation in the HMRC Developer Hub" + expectedSubject = "A user has been removed from your organisation in the HMRC Developer Hub" ) } }