New Using Notify static page

Adds the new Using Notify view

Adds route to Using Notify page.

Add redirects for old pages

Removes the delivery and failure page as it's now in the Using Notify one

Removes the trial mode page due to Using Notify page
This commit is contained in:
Pete Herlihy
2017-08-30 15:22:26 +01:00
committed by Chris Hill-Scott
parent dbecbdfed4
commit f7ff745872
5 changed files with 188 additions and 127 deletions

View File

@@ -17,7 +17,7 @@ def test_logged_in_user_redirects_to_choose_service(
@pytest.mark.parametrize('view', [
'cookies', 'trial_mode', 'pricing', 'terms', 'delivery_and_failure', 'integration_testing', 'roadmap', 'features'
'cookies', 'using_notify', 'pricing', 'terms', 'integration_testing', 'roadmap', 'features'
])
def test_static_pages(
client,
@@ -25,3 +25,21 @@ def test_static_pages(
):
response = client.get(url_for('main.{}'.format(view)))
assert response.status_code == 200
@pytest.mark.parametrize('view, expected_anchor', [
('delivery_and_failure', 'messagedeliveryandfailure'),
('trial_mode', 'trial-mode'),
])
def test_old_static_pages(
client,
view,
expected_anchor,
):
response = client.get(url_for('main.{}'.format(view)))
assert response.status_code == 301
assert response.location == url_for(
'main.using_notify',
_anchor=expected_anchor,
_external=True
)