diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index 356048734..4ac121641 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -119,7 +119,10 @@ class RequestingEntityForm(RegistrarForm): if not cleaned_data.get("suborganization_city"): self.add_error("suborganization_city", "Enter the city where your suborganization is located.") if not cleaned_data.get("suborganization_state_territory"): - self.add_error("suborganization_state_territory", "Select the state, territory, or military post where your suborganization is located") + self.add_error( + "suborganization_state_territory", + "Select the state, territory, or military post where your suborganization is located", + ) elif not suborganization: self.add_error("sub_organization", "Suborganization is required.") diff --git a/src/registrar/tests/test_views_portfolio.py b/src/registrar/tests/test_views_portfolio.py index 775cb04e6..9c27dcb15 100644 --- a/src/registrar/tests/test_views_portfolio.py +++ b/src/registrar/tests/test_views_portfolio.py @@ -1794,9 +1794,13 @@ class TestRequestingEntity(WebTest): form["portfolio_requesting_entity-is_requesting_new_suborganization"] = True response = form.submit() self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) - self.assertContains(response, "Requested suborganization is required.", status_code=200) - self.assertContains(response, "City is required.", status_code=200) - self.assertContains(response, "State, territory, or military post is required.", status_code=200) + self.assertContains(response, "Enter the name of your suborganization.", status_code=200) + self.assertContains(response, "Enter the city where your suborganization is located.", status_code=200) + self.assertContains( + response, + "Select the state, territory, or military post where your suborganization is located", + status_code=200, + ) @override_flag("organization_feature", active=True) @override_flag("organization_requests", active=True)