mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
WIP - fixed homepage view
This commit is contained in:
parent
653a958950
commit
c21c417b0e
2 changed files with 10 additions and 1 deletions
|
@ -52,7 +52,8 @@
|
||||||
</th>
|
</th>
|
||||||
<td data-sort-value="{{ domain.expiration_date|date:"U" }}" data-label="Expires">{{ domain.expiration_date|date }}</td>
|
<td data-sort-value="{{ domain.expiration_date|date:"U" }}" data-label="Expires">{{ domain.expiration_date|date }}</td>
|
||||||
<td data-label="Status">
|
<td data-label="Status">
|
||||||
{% if domain.is_expired %}
|
{# UNKNOWN domains would not have an expiration date and thus would show 'Expired' #}
|
||||||
|
{% if domain.is_expired and domain.state != "unknown" %}
|
||||||
Expired
|
Expired
|
||||||
{% elif domain.state == "unknown" or domain.state == "dns needed"%}
|
{% elif domain.state == "unknown" or domain.state == "dns needed"%}
|
||||||
DNS needed
|
DNS needed
|
||||||
|
|
|
@ -1501,6 +1501,14 @@ class TestDomainDetail(TestDomainOverview):
|
||||||
self.assertContains(detail_page, "igorville.gov")
|
self.assertContains(detail_page, "igorville.gov")
|
||||||
self.assertContains(detail_page, "Status")
|
self.assertContains(detail_page, "Status")
|
||||||
|
|
||||||
|
def test_unknown_domain_does_not_show_as_expired(self):
|
||||||
|
home_page = self.app.get("/")
|
||||||
|
self.assertContains(home_page, "igorville.gov")
|
||||||
|
# click the "Edit" link
|
||||||
|
# detail_page = home_page.click("Manage", index=0)
|
||||||
|
# self.assertContains(detail_page, "igorville.gov")
|
||||||
|
# self.assertContains(detail_page, "Status")
|
||||||
|
|
||||||
def test_domain_detail_blocked_for_ineligible_user(self):
|
def test_domain_detail_blocked_for_ineligible_user(self):
|
||||||
"""We could easily duplicate this test for all domain management
|
"""We could easily duplicate this test for all domain management
|
||||||
views, but a single url test should be solid enough since all domain
|
views, but a single url test should be solid enough since all domain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue