mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 14:04:10 +02:00
modified the error message; updated the formatting of the code
This commit is contained in:
parent
b84fdedc40
commit
f45cee3eb4
3 changed files with 6 additions and 6 deletions
|
@ -26,9 +26,9 @@
|
||||||
{% if not domain.domain_info %}
|
{% if not domain.domain_info %}
|
||||||
<div class="usa-alert usa-alert--error margin-bottom-2">
|
<div class="usa-alert usa-alert--error margin-bottom-2">
|
||||||
<div class="usa-alert__body">
|
<div class="usa-alert__body">
|
||||||
<h4 class="usa-alert__heading larger-font-sizing">Error!</h4>
|
<h4 class="usa-alert__heading larger-font-sizing">Domain missing domain information</h4>
|
||||||
<p class="usa-alert__text ">
|
<p class="usa-alert__text ">
|
||||||
You are attempting to manage a domain, {{ domain.name }}, which does not have a Domain Information object. Please correct this in the admin.
|
You are attempting to manage a domain, {{ domain.name }}, which does not have a domain information object. Please correct this in the admin by editing the domain, and adding domain information, as appropriate.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1293,8 +1293,8 @@ class TestDomainOverview(TestWithDomainPermissions, WebTest):
|
||||||
# in the session to emulate user clicking Manage Domain
|
# in the session to emulate user clicking Manage Domain
|
||||||
# in the admin interface
|
# in the admin interface
|
||||||
session = self.client.session
|
session = self.client.session
|
||||||
session['analyst_action'] = 'foo'
|
session["analyst_action"] = "foo"
|
||||||
session['analyst_action_location'] = self.domain_no_information.id
|
session["analyst_action_location"] = self.domain_no_information.id
|
||||||
session.save()
|
session.save()
|
||||||
|
|
||||||
detail_page = self.client.get(
|
detail_page = self.client.get(
|
||||||
|
@ -1302,7 +1302,7 @@ class TestDomainOverview(TestWithDomainPermissions, WebTest):
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertContains(detail_page, "noinformation.gov")
|
self.assertContains(detail_page, "noinformation.gov")
|
||||||
self.assertContains(detail_page, "Error")
|
self.assertContains(detail_page, "Domain missing domain information")
|
||||||
|
|
||||||
|
|
||||||
class TestDomainManagers(TestDomainOverview):
|
class TestDomainManagers(TestDomainOverview):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue