mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
Add link and placeholder view for managing a security key
This commit is contained in:
@@ -366,6 +366,11 @@ def test_should_show_security_keys_page(
|
||||
|
||||
credential_row = page.select('tr')[-1]
|
||||
assert 'Test credential' in credential_row.text
|
||||
assert "Manage" in credential_row.find('a').text
|
||||
assert credential_row.find('a')["href"] == url_for(
|
||||
'.user_profile_manage_security_key',
|
||||
key_id=webauthn_credential['id']
|
||||
)
|
||||
|
||||
register_button = page.select_one("[data-module='register-security-key']")
|
||||
assert register_button.text.strip() == 'Register a key'
|
||||
|
||||
@@ -307,6 +307,7 @@ EXCLUDED_ENDPOINTS = tuple(map(Navigation.get_endpoint_with_blueprint, {
|
||||
'user_profile_email',
|
||||
'user_profile_email_authenticate',
|
||||
'user_profile_email_confirm',
|
||||
'user_profile_manage_security_key',
|
||||
'user_profile_mobile_number',
|
||||
'user_profile_mobile_number_authenticate',
|
||||
'user_profile_mobile_number_confirm',
|
||||
|
||||
@@ -4484,6 +4484,7 @@ def mock_get_invited_org_user_by_id(mocker, sample_org_invite):
|
||||
@pytest.fixture
|
||||
def webauthn_credential():
|
||||
return {
|
||||
'id': uuid4(),
|
||||
'name': 'Test credential',
|
||||
'credential_data': 'WJ0AAAAAAAAAAAAAAAAAAAAAAECKU1ppjl9gmhHWyDkgHsUvZmhr6oF3/lD3llzLE2SaOSgOGIsIuAQqgp8JQSUu3r/oOaP8RS44dlQjrH+ALfYtpAECAyYhWCAxnqAfESXOYjKUc2WACuXZ3ch0JHxV0VFrrTyjyjIHXCJYIFnx8H87L4bApR4M+hPcV+fHehEOeW+KCyd0H+WGY8s6', # noqa
|
||||
'registration_response': 'anything',
|
||||
|
||||
Reference in New Issue
Block a user