mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-14 16:47:02 +02:00
Unit tests
This commit is contained in:
parent
7e4dc38b40
commit
cc1555ab9a
4 changed files with 8 additions and 16 deletions
|
@ -312,11 +312,6 @@ input.admin-confirm-button {
|
|||
max-width: 68ex;
|
||||
}
|
||||
|
||||
.django-admin-custom-bullets ul > li {
|
||||
// Set list-style-type to inherit without modifying text size
|
||||
list-style-type: inherit;
|
||||
}
|
||||
|
||||
.usa-summary-box__dhs-color {
|
||||
color: $dhs-blue-70;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description">
|
||||
When a domain is deleted:
|
||||
</h3>
|
||||
<div class="usa-summary-box__text django-admin-custom-bullets">
|
||||
<div class="usa-summary-box__text">
|
||||
<ul class="usa-list">
|
||||
<li>The domain will no longer appear in the registrar / admin.</li>
|
||||
<li>It will be removed from the registry. </li>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description">
|
||||
When a domain is deleted:
|
||||
</h3>
|
||||
<div class="usa-summary-box__text django-admin-custom-bullets">
|
||||
<div class="usa-summary-box__text">
|
||||
<ul class="usa-list">
|
||||
<li>The domain will no longer appear in the registrar / admin.</li>
|
||||
<li>It will be removed from the registry. </li>
|
||||
|
|
|
@ -241,7 +241,7 @@ class TestDomainAdmin(MockEppLib, WebTest):
|
|||
# click the "Manage" link
|
||||
confirmation_page = domain_change_page.click("Delete", index=0)
|
||||
|
||||
content_slice = "<p>When a domain is removed from the registry:</p>"
|
||||
content_slice = "When a domain is deleted:"
|
||||
self.assertContains(confirmation_page, content_slice)
|
||||
|
||||
def test_short_org_name_in_domains_list(self):
|
||||
|
@ -1180,8 +1180,7 @@ class TestDomainApplicationAdmin(MockEppLib):
|
|||
|
||||
# Create a mock request
|
||||
request = self.factory.post(
|
||||
"/admin/registrar/domainapplication/{}/change/".format(application.pk),
|
||||
follow=True
|
||||
"/admin/registrar/domainapplication/{}/change/".format(application.pk), follow=True
|
||||
)
|
||||
|
||||
with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
|
||||
|
@ -1214,7 +1213,6 @@ class TestDomainApplicationAdmin(MockEppLib):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, application.requested_domain.name)
|
||||
|
||||
|
||||
# Check that the modal has the right content
|
||||
# Check for the header
|
||||
self.assertContains(response, "Are you sure you want to select ineligible status?")
|
||||
|
@ -1227,8 +1225,7 @@ class TestDomainApplicationAdmin(MockEppLib):
|
|||
|
||||
# Create a mock request
|
||||
request = self.factory.post(
|
||||
"/admin/registrar/domainapplication/{}/change/".format(application.pk),
|
||||
follow=True
|
||||
"/admin/registrar/domainapplication/{}/change/".format(application.pk), follow=True
|
||||
)
|
||||
with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
|
||||
# Modify the application's property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue