Merge pull request #3989 from alphagov/update-pricing-pages

Add a billing details page
This commit is contained in:
Leo Hemsted
2021-09-08 16:31:38 +01:00
committed by GitHub
27 changed files with 369 additions and 140 deletions

View File

@@ -283,7 +283,7 @@ def test_should_create_api_key_with_type_normal(
_expected_status=200,
)
assert page.select_one('span.api-key__key').text.strip() == (
assert page.select_one('span.copy-to-clipboard__value').text.strip() == (
'some_default_key_name_12-{}-{}'.format(SERVICE_ONE_ID, fake_uuid)
)

View File

@@ -100,6 +100,7 @@ def test_hiding_pages_from_search_engines(
'guidance_index', 'branding_and_customisation',
'create_and_send_messages', 'edit_and_format_messages',
'send_files_by_email', 'upload_a_letter', 'who_can_use_notify',
'billing_details',
])
def test_static_pages(
client_request,

View File

@@ -975,7 +975,7 @@ def test_should_show_template_id_on_template_page(
template_id=fake_uuid,
_test_page_title=False,
)
assert fake_uuid in page.select('.api-key__key')[0].text
assert fake_uuid in page.select('.copy-to-clipboard__value')[0].text
def test_should_hide_template_id_for_broadcast_templates(
@@ -990,7 +990,7 @@ def test_should_hide_template_id_for_broadcast_templates(
template_id=fake_uuid,
_test_page_title=False,
)
assert not page.select('.api-key__key')
assert not page.select('.copy-to-clipboard__value')
def test_should_show_sms_template_with_downgraded_unicode_characters(