mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
Update test_views_request.py
This commit is contained in:
parent
221706c680
commit
31d065d701
1 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue