fixed testing

This commit is contained in:
Beverly Nguyen
2024-04-23 16:23:31 -07:00
parent d47fbb8eb7
commit 2c0a4f16f2
2 changed files with 3 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{% from "components/banner.html" import banner %}
{% from "components/components/skip-link/macro.njk" import usaSkipLink -%}
{% from "components/sub-navigation.html" import sub_navigation %}

View File

@@ -23,11 +23,7 @@ def test_non_logged_in_user_can_see_homepage(
"main.sign_in",
)
assert page.select_one("meta[name=description]")["content"].strip() == (
"Notify.gov lets you send text messages to your users. "
"Try it now if you work in federal, state, or local government."
)
assert page.select_one("meta[name=description]") is not None
# This area is hidden for the pilot
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
# 'Whos using Notify.gov ' # Hiding this next area for the pilot
@@ -114,7 +110,7 @@ def test_static_pages(
# Check the page loads when user is signed in
page = request()
assert not page.select_one("meta[name=description]")
assert page.select_one("meta[name=description]")
# Check it still works when they dont have a recent service
with client_request.session_transaction() as session: