mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 15:34:53 +02:00
Mr/text updates (#444)
* Updated error message text * Updated field labels, intro text * Tidy up thank you page * Removed reference to managing a domain * Update test language to match form language * Fix linting error (hopefully) * Fix linting and tests --------- Co-authored-by: Neil Martinsen-Burrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
parent
96c73471e4
commit
3cd3869c93
5 changed files with 27 additions and 14 deletions
|
@ -29,7 +29,13 @@ class TestFormValidation(TestCase):
|
|||
|
||||
def test_website_invalid(self):
|
||||
form = CurrentSitesForm(data={"website": "nah"})
|
||||
self.assertEqual(form.errors["website"], ["Enter a valid URL."])
|
||||
self.assertEqual(
|
||||
form.errors["website"],
|
||||
[
|
||||
"Enter your organization's"
|
||||
" website in the required format, like www.city.com."
|
||||
],
|
||||
)
|
||||
|
||||
def test_website_valid(self):
|
||||
form = CurrentSitesForm(data={"website": "hyphens-rule.gov.uk"})
|
||||
|
@ -83,7 +89,7 @@ class TestFormValidation(TestCase):
|
|||
"""Must be a valid phone number."""
|
||||
form = AuthorizingOfficialForm(data={"phone": "boss@boss"})
|
||||
self.assertTrue(
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number")
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number ")
|
||||
)
|
||||
|
||||
def test_your_contact_email_invalid(self):
|
||||
|
@ -98,7 +104,7 @@ class TestFormValidation(TestCase):
|
|||
"""Must be a valid phone number."""
|
||||
form = YourContactForm(data={"phone": "boss@boss"})
|
||||
self.assertTrue(
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number")
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number ")
|
||||
)
|
||||
|
||||
def test_other_contact_email_invalid(self):
|
||||
|
@ -113,7 +119,7 @@ class TestFormValidation(TestCase):
|
|||
"""Must be a valid phone number."""
|
||||
form = OtherContactsForm(data={"phone": "boss@boss"})
|
||||
self.assertTrue(
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number")
|
||||
form.errors["phone"][0].startswith("Enter a valid phone number ")
|
||||
)
|
||||
|
||||
def test_requirements_form_blank(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue