mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 07:28:26 -04:00
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:
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user