mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-02 07:00:51 -04:00
Make pricing page consistent in talking about MoU
We shouldn’t tell people on one page (the terms page) that we know about their organisations agreement and then on the pricing page tell them to contact us to find out what we know about the agreement. So this commit adds the same logic from the terms page to the pricing page, with wording that makes sense in the pricing context.
This commit is contained in:
@@ -102,13 +102,17 @@ def test_terms_is_generic_if_user_is_not_logged_in(
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('email_address, expected_first_paragraph', [
|
||||
@pytest.mark.parametrize('email_address, expected_terms_paragraph, expected_pricing_paragraph', [
|
||||
(
|
||||
'test@cabinet-office.gov.uk',
|
||||
(
|
||||
'Your organisation (Cabinet Office) has already accepted '
|
||||
'the GOV.UK Notify data sharing and financial agreement.'
|
||||
),
|
||||
(
|
||||
'Contact us to get a copy of the agreement '
|
||||
'(Cabinet Office has already accepted it).'
|
||||
),
|
||||
),
|
||||
(
|
||||
'test@aylesburytowncouncil.gov.uk',
|
||||
@@ -117,6 +121,10 @@ def test_terms_is_generic_if_user_is_not_logged_in(
|
||||
'accept our data sharing and financial agreement. Contact '
|
||||
'us to get a copy.'
|
||||
),
|
||||
(
|
||||
'Contact us to get a copy of the agreement '
|
||||
'(Aylesbury Town Council hasn’t accepted it yet).'
|
||||
),
|
||||
),
|
||||
(
|
||||
'larry@downing-street.gov.uk',
|
||||
@@ -124,6 +132,10 @@ def test_terms_is_generic_if_user_is_not_logged_in(
|
||||
'Your organisation must also accept our data sharing and '
|
||||
'financial agreement. Contact us to get a copy.'
|
||||
),
|
||||
(
|
||||
'Contact us to get a copy of the agreement or find out if '
|
||||
'we already have one in place with your organisation.'
|
||||
),
|
||||
),
|
||||
])
|
||||
def test_terms_tells_logged_in_users_what_we_know_about_their_agreement(
|
||||
@@ -131,10 +143,13 @@ def test_terms_tells_logged_in_users_what_we_know_about_their_agreement(
|
||||
fake_uuid,
|
||||
client_request,
|
||||
email_address,
|
||||
expected_first_paragraph,
|
||||
expected_terms_paragraph,
|
||||
expected_pricing_paragraph,
|
||||
):
|
||||
user = active_user_with_permissions(fake_uuid)
|
||||
user.email_address = email_address
|
||||
mocker.patch('app.user_api_client.get_user', return_value=user)
|
||||
page = client_request.get('main.terms')
|
||||
assert normalize_spaces(page.select('main p')[1].text) == expected_first_paragraph
|
||||
terms_page = client_request.get('main.terms')
|
||||
pricing_page = client_request.get('main.pricing')
|
||||
assert normalize_spaces(terms_page.select('main p')[1].text) == expected_terms_paragraph
|
||||
assert normalize_spaces(pricing_page.select('main p')[-1].text) == expected_pricing_paragraph
|
||||
|
||||
Reference in New Issue
Block a user