From fefa8288c45aebbdd9c905dcb0f4cdc814f548cd Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Tue, 3 Oct 2023 15:28:27 -0400 Subject: [PATCH] 821 - removing a few headers and adjusting the tests to accept an empty string --- app/templates/components/table.html | 2 +- app/templates/views/service-settings.html | 1 - app/templates/views/user-profile.html | 1 - .../app/main/views/service_settings/test_service_settings.py | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/templates/components/table.html b/app/templates/components/table.html index 3b9b70570..199b9083c 100644 --- a/app/templates/components/table.html +++ b/app/templates/components/table.html @@ -1,5 +1,5 @@ {% macro mapping_table(caption='', field_headings=[], field_headings_visible=True, caption_visible=True, equal_length=False) -%} - +
diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index 3bac5b7b2..5751a6c8c 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -14,7 +14,6 @@ {% call mapping_table( caption='General', - field_headings=['Label', 'Value', 'Action'], field_headings_visible=False, caption_visible=False ) %} diff --git a/app/templates/views/user-profile.html b/app/templates/views/user-profile.html index b603b7828..b12be1019 100644 --- a/app/templates/views/user-profile.html +++ b/app/templates/views/user-profile.html @@ -13,7 +13,6 @@
{% call mapping_table( caption='Your profile', - field_headings=['Label', 'Value', 'Action'], field_headings_visible=False, caption_visible=False ) %} diff --git a/tests/app/main/views/service_settings/test_service_settings.py b/tests/app/main/views/service_settings/test_service_settings.py index 22847e13c..71662b058 100644 --- a/tests/app/main/views/service_settings/test_service_settings.py +++ b/tests/app/main/views/service_settings/test_service_settings.py @@ -54,7 +54,7 @@ def mock_get_service_settings_page_common( ( create_active_user_with_permissions(), [ - "Label Value Action", + "", "Service name Test Service Change service name", "Sign-in method Text message code Change sign-in method", "Send text messages On Change your settings for sending text messages", @@ -66,7 +66,7 @@ def mock_get_service_settings_page_common( ( create_platform_admin_user(), [ - "Label Value Action", + "", "Service name Test Service Change service name", "Sign-in method Text message code Change sign-in method", "Send text messages On Change your settings for sending text messages",
{{ caption }}