mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Merge pull request #1248 from GSA/1219-delete-terms-of-use
1219 - Deleting references to the "Terms" page
This commit is contained in:
@@ -102,15 +102,6 @@ def security():
|
|||||||
return render_template("views/security.html", navigation_links=features_nav())
|
return render_template("views/security.html", navigation_links=features_nav())
|
||||||
|
|
||||||
|
|
||||||
@main.route("/features/terms", endpoint="terms")
|
|
||||||
@user_is_logged_in
|
|
||||||
def terms():
|
|
||||||
return render_template(
|
|
||||||
"views/terms-of-use.html",
|
|
||||||
navigation_links=features_nav(),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@main.route("/features/using_notify")
|
@main.route("/features/using_notify")
|
||||||
@user_is_logged_in
|
@user_is_logged_in
|
||||||
def using_notify():
|
def using_notify():
|
||||||
@@ -214,7 +205,6 @@ def send_files_by_email():
|
|||||||
|
|
||||||
|
|
||||||
@main.route("/roadmap", endpoint="old_roadmap")
|
@main.route("/roadmap", endpoint="old_roadmap")
|
||||||
@main.route("/terms", endpoint="old_terms")
|
|
||||||
@main.route("/information-security", endpoint="information_security")
|
@main.route("/information-security", endpoint="information_security")
|
||||||
@main.route("/using_notify", endpoint="old_using_notify")
|
@main.route("/using_notify", endpoint="old_using_notify")
|
||||||
@main.route("/information-risk-management", endpoint="information_risk_management")
|
@main.route("/information-risk-management", endpoint="information_risk_management")
|
||||||
@@ -222,7 +212,6 @@ def send_files_by_email():
|
|||||||
def old_page_redirects():
|
def old_page_redirects():
|
||||||
redirects = {
|
redirects = {
|
||||||
"main.old_roadmap": "main.roadmap",
|
"main.old_roadmap": "main.roadmap",
|
||||||
"main.old_terms": "main.terms",
|
|
||||||
"main.information_security": "main.using_notify",
|
"main.information_security": "main.using_notify",
|
||||||
"main.old_using_notify": "main.using_notify",
|
"main.old_using_notify": "main.using_notify",
|
||||||
"main.information_risk_management": "main.security",
|
"main.information_risk_management": "main.security",
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ def features_nav():
|
|||||||
"name": "Security",
|
"name": "Security",
|
||||||
"link": "main.security",
|
"link": "main.security",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Terms of use",
|
|
||||||
"link": "main.terms",
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ class HeaderNavigation(Navigation):
|
|||||||
"features_sms",
|
"features_sms",
|
||||||
"roadmap",
|
"roadmap",
|
||||||
"security",
|
"security",
|
||||||
"terms",
|
|
||||||
},
|
},
|
||||||
"using_notify": {
|
"using_notify": {
|
||||||
"get_started",
|
"get_started",
|
||||||
|
|||||||
@@ -201,10 +201,6 @@
|
|||||||
"href": url_for("main.security"),
|
"href": url_for("main.security"),
|
||||||
"text": "Security"
|
"text": "Security"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"href": url_for("main.terms"),
|
|
||||||
"text": "Terms of use"
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ def test_hiding_pages_from_search_engines(
|
|||||||
[
|
[
|
||||||
"privacy",
|
"privacy",
|
||||||
"pricing",
|
"pricing",
|
||||||
"terms",
|
|
||||||
"roadmap",
|
"roadmap",
|
||||||
"features",
|
"features",
|
||||||
"documentation",
|
"documentation",
|
||||||
@@ -167,7 +166,6 @@ def test_guidance_pages_link_to_service_pages_when_signed_in(
|
|||||||
("information_risk_management", "security"),
|
("information_risk_management", "security"),
|
||||||
("old_integration_testing", "integration_testing"),
|
("old_integration_testing", "integration_testing"),
|
||||||
("old_roadmap", "roadmap"),
|
("old_roadmap", "roadmap"),
|
||||||
("old_terms", "terms"),
|
|
||||||
("information_security", "using_notify"),
|
("information_security", "using_notify"),
|
||||||
("old_using_notify", "using_notify"),
|
("old_using_notify", "using_notify"),
|
||||||
("delivery_and_failure", "message_status"),
|
("delivery_and_failure", "message_status"),
|
||||||
@@ -226,12 +224,12 @@ def test_old_using_notify_page(client_request):
|
|||||||
# )
|
# )
|
||||||
|
|
||||||
|
|
||||||
def test_terms_page_has_correct_content(client_request):
|
# def test_terms_page_has_correct_content(client_request):
|
||||||
terms_page = client_request.get("main.terms")
|
# terms_page = client_request.get("main.terms")
|
||||||
assert normalize_spaces(terms_page.select("main p")[0].text) == (
|
# assert normalize_spaces(terms_page.select("main p")[0].text) == (
|
||||||
"These terms apply to your service’s use of Notify.gov. "
|
# "These terms apply to your service’s use of Notify.gov. "
|
||||||
"You must be the service manager to accept them."
|
# "You must be the service manager to accept them."
|
||||||
)
|
# )
|
||||||
|
|
||||||
|
|
||||||
def test_css_is_served_from_correct_path(client_request):
|
def test_css_is_served_from_correct_path(client_request):
|
||||||
|
|||||||
@@ -128,7 +128,6 @@ EXCLUDED_ENDPOINTS = tuple(
|
|||||||
"old_integration_testing",
|
"old_integration_testing",
|
||||||
"old_roadmap",
|
"old_roadmap",
|
||||||
"old_service_dashboard",
|
"old_service_dashboard",
|
||||||
"old_terms",
|
|
||||||
"old_using_notify",
|
"old_using_notify",
|
||||||
"organization_billing",
|
"organization_billing",
|
||||||
"organization_dashboard",
|
"organization_dashboard",
|
||||||
@@ -205,7 +204,6 @@ EXCLUDED_ENDPOINTS = tuple(
|
|||||||
"suspend_service",
|
"suspend_service",
|
||||||
"template_history",
|
"template_history",
|
||||||
"template_usage",
|
"template_usage",
|
||||||
"terms",
|
|
||||||
"tour_step",
|
"tour_step",
|
||||||
"trial_mode",
|
"trial_mode",
|
||||||
"trial_mode_new",
|
"trial_mode_new",
|
||||||
|
|||||||
Reference in New Issue
Block a user