Update test_views_request.py

This commit is contained in:
zandercymatics 2024-11-06 12:17:04 -07:00
parent 221706c680
commit 31d065d701
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -969,10 +969,12 @@ class DomainRequestTests(TestWithUser, WebTest):
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
new_page = federal_page.click(str(self.TITLES["generic_org_type"]), index=0)
# Should be a link to the organization_federal page since it is now unlocked
logger.info(f"new_page: {new_page}")
logger.info(f"domain requests: {DomainRequest.objects.all()}")
all_domain_requests = DomainRequest.objects.all()
self.assertEqual(all_domain_requests.count(), 1)
new_request_id = all_domain_requests.first().id
self.assertGreater(
len(new_page.html.find_all("a", href="/request/1/organization_federal/")),
len(new_page.html.find_all("a", href=f"/request/{new_request_id}/organization_federal/")),
0,
)