mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Add endpoint for new page
This commit is contained in:
@@ -305,6 +305,13 @@ def message_status():
|
||||
)
|
||||
|
||||
|
||||
@main.route('/features/get-started')
|
||||
def get_started():
|
||||
return render_template(
|
||||
'views/get-started.html'
|
||||
)
|
||||
|
||||
|
||||
@main.route('/trial-mode')
|
||||
def trial_mode():
|
||||
return redirect(url_for('.trial_mode_new'), 301)
|
||||
|
||||
@@ -190,6 +190,7 @@ class HeaderNavigation(Navigation):
|
||||
'forgot_password',
|
||||
'get_example_csv',
|
||||
'get_notifications_as_json',
|
||||
'get_started',
|
||||
'go_to_dashboard_after_tour',
|
||||
'inbound_sms_admin',
|
||||
'inbox',
|
||||
@@ -504,6 +505,7 @@ class MainNavigation(Navigation):
|
||||
'forgot_password',
|
||||
'get_example_csv',
|
||||
'get_notifications_as_json',
|
||||
'get_started',
|
||||
'go_to_dashboard_after_tour',
|
||||
'how_to_pay',
|
||||
'inbound_sms_admin',
|
||||
@@ -728,6 +730,7 @@ class CaseworkNavigation(Navigation):
|
||||
'forgot_password',
|
||||
'get_example_csv',
|
||||
'get_notifications_as_json',
|
||||
'get_started',
|
||||
'go_to_dashboard_after_tour',
|
||||
'how_to_pay',
|
||||
'inbound_sms_admin',
|
||||
@@ -1015,6 +1018,7 @@ class OrgNavigation(Navigation):
|
||||
'forgot_password',
|
||||
'get_example_csv',
|
||||
'get_notifications_as_json',
|
||||
'get_started',
|
||||
'go_to_dashboard_after_tour',
|
||||
'how_to_pay',
|
||||
'inbound_sms_admin',
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<li>
|
||||
<h2 class="heading-small">Create an account</h2>
|
||||
{% if not current_user.is_authenticated %}
|
||||
<p><a href="{{ url_for('.register') }}">Create an account</a> for free and add your first Notify service. When you add a new service, it will start in <a href="{{ url_for('main.trial-mode') }}">trial mode</a>.</p>
|
||||
<p><a href="{{ url_for('.register') }}">Create an account</a> for free and add your first Notify service. When you add a new service, it will start in <a href="{{ url_for('main.trial_mode_new') }}">trial mode</a>.</p>
|
||||
{% else %}
|
||||
<p>Create an account for free and add your first Notify service. When you add a new service, it will start in <a href="{{ url_for('main.trial_mode_new') }}">trial mode</a>.</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -74,7 +74,7 @@ def test_robots(client):
|
||||
'cookies', 'privacy', 'pricing', 'terms', 'roadmap',
|
||||
'features', 'documentation', 'security',
|
||||
'message_status', 'features_email', 'features_sms',
|
||||
'features_letters', 'how_to_pay',
|
||||
'features_letters', 'how_to_pay', 'get_started'
|
||||
])
|
||||
def test_static_pages(
|
||||
client_request,
|
||||
@@ -84,6 +84,12 @@ def test_static_pages(
|
||||
page = client_request.get('main.{}'.format(view))
|
||||
assert not page.select_one('meta[name=description]')
|
||||
|
||||
client_request.logout()
|
||||
with client_request.session_transaction() as session:
|
||||
session['service_id'] = None
|
||||
session['user_id'] = None
|
||||
client_request.get('main.{}'.format(view))
|
||||
|
||||
|
||||
@pytest.mark.parametrize('view, expected_view', [
|
||||
('information_risk_management', 'security'),
|
||||
|
||||
Reference in New Issue
Block a user