This commit is contained in:
Rachid Mrad 2024-04-30 21:48:14 -04:00
parent cf3f87b1fd
commit 947e476a71
No known key found for this signature in database

View file

@ -979,24 +979,24 @@ class TestDomainRequestAdmin(MockEppLib):
self.assertContains(response, "<td>Action needed</td>", count=1) self.assertContains(response, "<td>Action needed</td>", count=1)
def test_collaspe_toggle_button_markup(self): def test_collaspe_toggle_button_markup(self):
""" """
Tests for the correct collapse toggle button markup Tests for the correct collapse toggle button markup
""" """
# Create a fake domain request and domain # Create a fake domain request and domain
domain_request = completed_domain_request(status=DomainRequest.DomainRequestStatus.IN_REVIEW) domain_request = completed_domain_request(status=DomainRequest.DomainRequestStatus.IN_REVIEW)
p = "adminpass" p = "adminpass"
self.client.login(username="superuser", password=p) self.client.login(username="superuser", password=p)
response = self.client.get( response = self.client.get(
"/admin/registrar/domainrequest/{}/change/".format(domain_request.pk), "/admin/registrar/domainrequest/{}/change/".format(domain_request.pk),
follow=True, follow=True,
) )
# Make sure the page loaded, and that we're on the right page # Make sure the page loaded, and that we're on the right page
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertContains(response, domain_request.requested_domain.name) self.assertContains(response, domain_request.requested_domain.name)
self.test_helper.assertContains(response, "<span>Show details</span>") self.test_helper.assertContains(response, "<span>Show details</span>")
@less_console_noise_decorator @less_console_noise_decorator
def test_analyst_can_see_and_edit_alternative_domain(self): def test_analyst_can_see_and_edit_alternative_domain(self):