Fix test to account for sr-only

This commit is contained in:
Neil Martinsen-Burrell 2023-01-31 14:58:01 -06:00
parent 92fd84c7d9
commit 1daf97d0d8
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184

View file

@ -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()