Reach people where they are with government-powered text messages
Notify.gov is a text message service that helps federal, state, local, tribal and territorial governments more effectively communicate with the people they serve.
Currently we are only working with select pilot partners. If you are interested in using Notify.gov in the future, please contact tts-benefits-studio@gsa.gov to learn more.
diff --git a/app/templates/views/signin.html b/app/templates/views/signin.html
index f3b3006d7..c2c6ebe1d 100644
--- a/app/templates/views/signin.html
+++ b/app/templates/views/signin.html
@@ -32,22 +32,6 @@
Sign in with Login.gov
{% endif %}
-
-
Effective April 16, 2024 Notify.gov requires you sign-in through Login.gov
-
Why are we doing this?
-
-
Enhanced security: Login.gov is really secure and trustworthy
-
One single source for signing in: You can use Login.gov for other services within the federal government
-
2FA flexibility: Login.gov supports multiple methods for users to verify their identity.
-
-
What do I need to do?
-
-
If you have a Login.gov account, start using it to sign in to Notify today.
-
If you don’t have a Login.gov account, you must create one to continue to access Notify.
-
+
{% endblock %}
diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py
index 57bdfaa70..1e08cd606 100644
--- a/tests/app/main/views/test_index.py
+++ b/tests/app/main/views/test_index.py
@@ -19,10 +19,9 @@ def test_non_logged_in_user_can_see_homepage(
"Reach people where they are with government-powered text messages"
)
- assert page.select_one("a.usa-button.usa-button--big")["href"] == url_for(
- "main.sign_in",
- )
-
+ assert page.select_one(
+ "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
# This area is hidden for the pilot
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
diff --git a/tests/app/main/views/test_sign_in.py b/tests/app/main/views/test_sign_in.py
index 135f4a5ba..efa01deb7 100644
--- a/tests/app/main/views/test_sign_in.py
+++ b/tests/app/main/views/test_sign_in.py
@@ -3,7 +3,6 @@ import uuid
import pytest
from flask import url_for
-from app.main.views.sign_in import _reformat_keystring
from app.models.user import User
from tests.conftest import SERVICE_ONE_ID, normalize_spaces
@@ -20,25 +19,12 @@ def test_render_sign_in_template_for_new_user(client_request):
# then these indices need to be 1 instead of 0.
# Currently it's not enabled for the test or production environments.
assert page.select("main a")[0].text == "Sign in with Login.gov"
- assert page.select("main a")[1].text == "Create Login.gov account"
# TODO: We'll have to adjust this depending on whether Login.gov is
# enabled or not; fix this in the future.
assert "Sign in again" not in normalize_spaces(page.text)
-def test_reformat_keystring():
- orig = "-----BEGIN PRIVATE KEY----- blah blah blah -----END PRIVATE KEY-----"
- expected = """-----BEGIN PRIVATE KEY-----
-blah
-blah
-blah
------END PRIVATE KEY-----
-"""
- reformatted = _reformat_keystring(orig)
- assert reformatted == expected
-
-
def test_sign_in_explains_session_timeout(client_request):
client_request.logout()
page = client_request.get("main.sign_in", next="/foo")
diff --git a/tests/end_to_end/test_landing_and_sign_in_pages.py b/tests/end_to_end/test_landing_and_sign_in_pages.py
index a9148cb31..513269f51 100644
--- a/tests/end_to_end/test_landing_and_sign_in_pages.py
+++ b/tests/end_to_end/test_landing_and_sign_in_pages.py
@@ -22,7 +22,7 @@ def test_landing_page(end_to_end_context):
"heading",
name="Reach people where they are with government-powered text messages",
)
- sign_in_button = page.get_by_role("link", name="Sign in")
+ sign_in_button = page.get_by_role("link", name="Sign in with")
benefits_studio_email = page.get_by_role("link", name="tts-benefits-studio@gsa.gov")
# Check to make sure the elements are visible.
@@ -31,7 +31,8 @@ def test_landing_page(end_to_end_context):
expect(benefits_studio_email).to_be_visible()
# Check to make sure the sign-in button and email links are correct.
- expect(sign_in_button).to_have_attribute("href", "/sign-in")
+ href_value = sign_in_button.get_attribute('href')
+ assert href_value is not None, "The sign-in button does not have an href attribute"
expect(benefits_studio_email).to_have_attribute(
"href", "mailto:tts-benefits-studio@gsa.gov"
)