diff --git a/src/registrar/tests/test_views_portfolio.py b/src/registrar/tests/test_views_portfolio.py index e5533ce43..28af5162a 100644 --- a/src/registrar/tests/test_views_portfolio.py +++ b/src/registrar/tests/test_views_portfolio.py @@ -1676,8 +1676,8 @@ class TestPortfolio(WebTest): self.assertEqual(response.status_code, 400) # Bad request due to active requests support_url = "https://get.gov/contact/" expected_error_message = ( - "Please to remove this member." - f"Please contact us to remove this member." + "This member can't be removed from the organization because they have an active domain request." + f"Please contact us to remove this member." ) self.assertContains(response, expected_error_message, status_code=400) @@ -1799,8 +1799,8 @@ class TestPortfolio(WebTest): support_url = "https://get.gov/contact/" expected_error_message = ( - "Please to remove this member." - f"Please contact us to remove this member." + "This member can't be removed from the organization because they have an active domain request." + f"Please contact us to remove this member." ) args, kwargs = mock_error.call_args diff --git a/src/registrar/views/portfolios.py b/src/registrar/views/portfolios.py index 535d0eb16..438533ff1 100644 --- a/src/registrar/views/portfolios.py +++ b/src/registrar/views/portfolios.py @@ -118,8 +118,8 @@ class PortfolioMemberDeleteView(PortfolioMemberPermission, View): if active_requests_count > 0: # If they have any in progress requests error_message = mark_safe( - "Please to remove this member." - f"Please contact us to remove this member." + "This member can't be removed from the organization because they have an active domain request." + f"Please contact us to remove this member." ) elif member.is_only_admin_of_portfolio(portfolio_member_permission.portfolio): # If they are the last manager of a domain