This commit is contained in:
zandercymatics 2025-01-23 11:10:53 -07:00
parent e68423c5ee
commit f203c99218
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 6 additions and 6 deletions

View file

@ -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 <contact us> to remove this member."
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
"This member can't be removed from the organization because they have an active domain request."
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> 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 <contact us> to remove this member."
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
"This member can't be removed from the organization because they have an active domain request."
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> to remove this member."
)
args, kwargs = mock_error.call_args

View file

@ -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 <contact us> to remove this member."
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
"This member can't be removed from the organization because they have an active domain request."
f"Please <a class='usa-link' href='{support_url}' target='_blank'>contact us</a> to remove this member."
)
elif member.is_only_admin_of_portfolio(portfolio_member_permission.portfolio):
# If they are the last manager of a domain