mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Update tests to match dashboard
This commit is contained in:
parent
3f487a941d
commit
3fc275bff8
1 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,7 @@ class TestViews(TestCase):
|
|||
"""Home page should be available without a login."""
|
||||
response = self.client.get("/")
|
||||
self.assertContains(response, "registrar", status_code=200)
|
||||
self.assertContains(response, "log in")
|
||||
self.assertContains(response, "Sign in")
|
||||
|
||||
def test_whoami_page_no_user(self):
|
||||
"""Whoami page not accessible without a logged-in user."""
|
||||
|
@ -69,7 +69,8 @@ class LoggedInTests(TestWithUser):
|
|||
creator=self.user, requested_domain=site
|
||||
)
|
||||
response = self.client.get("/")
|
||||
self.assertContains(response, "igorville.gov", count=1)
|
||||
# count = 2 because it is also in screenreader content
|
||||
self.assertContains(response, "igorville.gov", count=2)
|
||||
# clean up
|
||||
application.delete()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue