Fix unit tests

This commit is contained in:
Rachid Mrad 2024-09-11 21:50:58 -04:00
parent 71e46c7925
commit e16dd2ea93
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View file

@ -37,7 +37,7 @@
{% include "includes/required_fields.html" %}
<form class="usa-form usa-form--large desktop:margin-top-4" method="post" novalidate>
{% csrf_token %}
<h4 class="read-only-label">Organization</h4>
<h4 class="read-only-label">Organization name</h4>
<p class="read-only-value">
{{ portfolio.federal_agency }}
</p>

View file

@ -1301,7 +1301,9 @@ class TestDomainOrganization(TestDomainOverview):
"""Can load domain's org name and mailing address page."""
page = self.client.get(reverse("domain-org-name-address", kwargs={"pk": self.domain.id}))
# once on the sidebar, once in the page title, once as H1
self.assertContains(page, "Organization", count=4)
self.assertContains(page, "Organization</a>")
self.assertContains(page, "Organization name and mailing address")
self.assertContains(page, "Organization</h1>")
@less_console_noise_decorator
def test_domain_org_name_address_content(self):

View file

@ -341,7 +341,7 @@ class TestPortfolio(WebTest):
)
page = self.app.get(reverse("organization"))
self.assertContains(
page, "The name of your federal agency will be publicly listed as the domain registrant."
page, "The name of your organization will be publicly listed as the domain registrant."
)
@less_console_noise_decorator