mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
@@ -130,10 +130,10 @@ def put_invite_data_in_redis(
|
|||||||
):
|
):
|
||||||
ttl = 60 * 15 # 15 minutes
|
ttl = 60 * 15 # 15 minutes
|
||||||
|
|
||||||
redis_client.raw_set(f"invitedata-{state}", json.dumps(invite_data), ex=ttl)
|
redis_client.set(f"invitedata-{state}", json.dumps(invite_data), ex=ttl)
|
||||||
redis_client.raw_set(f"user_email-{state}", user_email, ex=ttl)
|
redis_client.set(f"user_email-{state}", user_email, ex=ttl)
|
||||||
redis_client.raw_set(f"user_uuid-{state}", user_uuid, ex=ttl)
|
redis_client.set(f"user_uuid-{state}", user_uuid, ex=ttl)
|
||||||
redis_client.raw_set(
|
redis_client.set(
|
||||||
f"invited_user_email_address-{state}",
|
f"invited_user_email_address-{state}",
|
||||||
invited_user_email_address,
|
invited_user_email_address,
|
||||||
ex=ttl,
|
ex=ttl,
|
||||||
|
|||||||
@@ -19,9 +19,12 @@ def test_non_logged_in_user_can_see_homepage(
|
|||||||
"Reach people where they are with government-powered text messages"
|
"Reach people where they are with government-powered text messages"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert page.select_one(
|
assert (
|
||||||
"a.usa-button.login-button.login-button--primary.margin-right-2"
|
page.select_one(
|
||||||
).text == "Sign in with \n"
|
"a.usa-button.login-button.login-button--primary.margin-right-2"
|
||||||
|
).text
|
||||||
|
== "Sign in with \n"
|
||||||
|
)
|
||||||
assert page.select_one("meta[name=description]") is not None
|
assert page.select_one("meta[name=description]") is not None
|
||||||
# This area is hidden for the pilot
|
# This area is hidden for the pilot
|
||||||
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
|
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ def test_landing_page(end_to_end_context):
|
|||||||
expect(benefits_studio_email).to_be_visible()
|
expect(benefits_studio_email).to_be_visible()
|
||||||
|
|
||||||
# Check to make sure the sign-in button and email links are correct.
|
# Check to make sure the sign-in button and email links are correct.
|
||||||
href_value = sign_in_button.get_attribute('href')
|
href_value = sign_in_button.get_attribute("href")
|
||||||
assert href_value is not None, "The sign-in button does not have an href attribute"
|
assert href_value is not None, "The sign-in button does not have an href attribute"
|
||||||
expect(benefits_studio_email).to_have_attribute(
|
expect(benefits_studio_email).to_have_attribute(
|
||||||
"href", "mailto:tts-benefits-studio@gsa.gov"
|
"href", "mailto:tts-benefits-studio@gsa.gov"
|
||||||
|
|||||||
Reference in New Issue
Block a user