mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 14:36:32 +02:00
Text updates to success and error messages (#1593)
* Text updates to error messages * Error message text updates * Error message text updates * Update to success message text for name server update * Update to DS data removal warning text * Success message text updates * typo fix * Text updates for success messages * Update 403 text * Update 500 error text * Using example.com instead of city.com * Putting the period outside the link * Updated name server minimum error text * Trying to fix python errors * Update name server minimum text * Update errors.py * Trying to fix python errors * Update errors.py * Making error messages agree * Minor text change * Fix black error message formatting * Fixed tests and reformatted * One last fix? --------- Co-authored-by: Neil Martinsen-Burrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
parent
f8d2898836
commit
e2af9ac153
13 changed files with 41 additions and 37 deletions
|
@ -30,7 +30,7 @@ class TestFormValidation(MockEppLib):
|
|||
form = OrganizationContactForm(data={"zipcode": "nah"})
|
||||
self.assertEqual(
|
||||
form.errors["zipcode"],
|
||||
["Enter a zip code in the required format, like 12345 or 12345-6789."],
|
||||
["Enter a zip code in the form of 12345 or 12345-6789."],
|
||||
)
|
||||
|
||||
def test_org_contact_zip_valid(self):
|
||||
|
@ -42,7 +42,7 @@ class TestFormValidation(MockEppLib):
|
|||
form = CurrentSitesForm(data={"website": "nah"})
|
||||
self.assertEqual(
|
||||
form.errors["website"],
|
||||
["Enter your organization's current website in the required format, like www.city.com."],
|
||||
["Enter your organization's current website in the required format, like example.com."],
|
||||
)
|
||||
|
||||
def test_website_valid(self):
|
||||
|
@ -207,7 +207,7 @@ class TestFormValidation(MockEppLib):
|
|||
def test_your_contact_phone_invalid(self):
|
||||
"""Must be a valid phone number."""
|
||||
form = YourContactForm(data={"phone": "boss@boss"})
|
||||
self.assertTrue(form.errors["phone"][0].startswith("Enter a valid phone number "))
|
||||
self.assertTrue(form.errors["phone"][0].startswith("Enter a valid 10-digit phone number."))
|
||||
|
||||
def test_other_contact_email_invalid(self):
|
||||
"""must be a valid email address."""
|
||||
|
@ -220,7 +220,7 @@ class TestFormValidation(MockEppLib):
|
|||
def test_other_contact_phone_invalid(self):
|
||||
"""Must be a valid phone number."""
|
||||
form = OtherContactsForm(data={"phone": "super@boss"})
|
||||
self.assertTrue(form.errors["phone"][0].startswith("Enter a valid phone number "))
|
||||
self.assertTrue(form.errors["phone"][0].startswith("Enter a valid 10-digit phone number."))
|
||||
|
||||
def test_requirements_form_blank(self):
|
||||
"""Requirements box unchecked is an error."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue