rename api key component to copy_to_clipboard

does what it says on the tin, and is also consistent with prior art:
https://components.publishing.service.gov.uk/component-guide/copy_to_clipboard
This commit is contained in:
Leo Hemsted
2021-08-27 17:32:06 +01:00
parent 4921e6d46e
commit 85f6881a56
14 changed files with 100 additions and 100 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

@@ -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(