diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index 4e7182843..7cbb159b4 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -599,6 +599,9 @@ class DotGovDomainForm(RegistrarForm): return_type=ValidationReturnType.FORM_VALIDATION_ERROR, ) return validated + + def is_valid(self): + return super().is_valid() requested_domain = forms.CharField( label="What .gov domain do you want?", diff --git a/src/registrar/tests/test_views_request.py b/src/registrar/tests/test_views_request.py index d2a791969..7b117f67d 100644 --- a/src/registrar/tests/test_views_request.py +++ b/src/registrar/tests/test_views_request.py @@ -2614,18 +2614,17 @@ class DomainRequestTests(TestWithUser, WebTest): # Now proceed with the actual test domain_form = dotgov_page.forms[0] - domain_form["dotgov_domain-requested_domain"] = "asdffhgjkl.gov" + domain = "test.gov" + domain_form["dotgov_domain-requested_domain"] = domain domain_form["dotgov_domain-feb_naming_requirements"] = "True" domain_form["dotgov_domain-feb_naming_requirements_details"] = "test" - print(domain_form.fields) - - self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) - domain_result = domain_form.submit() + with patch('registrar.forms.domain_request_wizard.DotGovDomainForm.clean_requested_domain', return_value=domain): # noqa + self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) + domain_result = domain_form.submit() # ---- PURPOSE PAGE ---- self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id) purpose_page = domain_result.follow() - print(purpose_page.forms[0].fields) self.feb_purpose_page_tests(purpose_page)