Unit tests

This commit is contained in:
zandercymatics 2024-03-04 12:08:52 -07:00
parent 7e4dc38b40
commit cc1555ab9a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 8 additions and 16 deletions

View file

@ -312,11 +312,6 @@ input.admin-confirm-button {
max-width: 68ex; 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 { .usa-summary-box__dhs-color {
color: $dhs-blue-70; color: $dhs-blue-70;
} }

View file

@ -11,7 +11,7 @@
<h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description"> <h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description">
When a domain is deleted: When a domain is deleted:
</h3> </h3>
<div class="usa-summary-box__text django-admin-custom-bullets"> <div class="usa-summary-box__text">
<ul class="usa-list"> <ul class="usa-list">
<li>The domain will no longer appear in the registrar / admin.</li> <li>The domain will no longer appear in the registrar / admin.</li>
<li>It will be removed from the registry. </li> <li>It will be removed from the registry. </li>

View file

@ -12,7 +12,7 @@
<h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description"> <h3 class="usa-summary-box__heading usa-summary-box__dhs-color" id="summary-box-description">
When a domain is deleted: When a domain is deleted:
</h3> </h3>
<div class="usa-summary-box__text django-admin-custom-bullets"> <div class="usa-summary-box__text">
<ul class="usa-list"> <ul class="usa-list">
<li>The domain will no longer appear in the registrar / admin.</li> <li>The domain will no longer appear in the registrar / admin.</li>
<li>It will be removed from the registry. </li> <li>It will be removed from the registry. </li>

View file

@ -241,7 +241,7 @@ class TestDomainAdmin(MockEppLib, WebTest):
# click the "Manage" link # click the "Manage" link
confirmation_page = domain_change_page.click("Delete", index=0) 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) self.assertContains(confirmation_page, content_slice)
def test_short_org_name_in_domains_list(self): def test_short_org_name_in_domains_list(self):
@ -1180,8 +1180,7 @@ class TestDomainApplicationAdmin(MockEppLib):
# Create a mock request # Create a mock request
request = self.factory.post( request = self.factory.post(
"/admin/registrar/domainapplication/{}/change/".format(application.pk), "/admin/registrar/domainapplication/{}/change/".format(application.pk), follow=True
follow=True
) )
with boto3_mocking.clients.handler_for("sesv2", self.mock_client): with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
@ -1214,7 +1213,6 @@ class TestDomainApplicationAdmin(MockEppLib):
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertContains(response, application.requested_domain.name) self.assertContains(response, application.requested_domain.name)
# Check that the modal has the right content # Check that the modal has the right content
# Check for the header # Check for the header
self.assertContains(response, "Are you sure you want to select ineligible status?") self.assertContains(response, "Are you sure you want to select ineligible status?")
@ -1227,8 +1225,7 @@ class TestDomainApplicationAdmin(MockEppLib):
# Create a mock request # Create a mock request
request = self.factory.post( request = self.factory.post(
"/admin/registrar/domainapplication/{}/change/".format(application.pk), "/admin/registrar/domainapplication/{}/change/".format(application.pk), follow=True
follow=True
) )
with boto3_mocking.clients.handler_for("sesv2", self.mock_client): with boto3_mocking.clients.handler_for("sesv2", self.mock_client):
# Modify the application's property # Modify the application's property