mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Make template graphs look consistent with page
The graphs of template usage feel a bit weird to me now. 1. They are counts of messages, but the numbers are very small not big like we do everywhere else (eg the counts on a job) 2. There’s a lot of blue, especially for something that you can’t click This commit makes the numbers bigger and the bar chart grey.
This commit is contained in:
@@ -91,11 +91,15 @@ def test_should_show_recent_templates_on_dashboard(app_,
|
||||
|
||||
assert len(table_rows) == 2
|
||||
|
||||
assert page.find_all('dt')[0].text.strip() == 'Pickle feet'
|
||||
assert page.find_all('dd')[0].text.strip() == '206 text messages sent'
|
||||
assert 'Pickle feet' in page.find_all('dt')[0].text
|
||||
assert 'Text message template' in page.find_all('dt')[0].text
|
||||
assert '206' in page.find_all('dd')[0].text
|
||||
assert 'text messages sent' in page.find_all('dd')[0].text
|
||||
|
||||
assert page.find_all('dt')[1].text.strip() == 'Brine Shrimp'
|
||||
assert page.find_all('dd')[1].text.strip() == '13 text messages sent'
|
||||
assert 'Brine Shrimp' in page.find_all('dt')[1].text
|
||||
assert 'Text message template' in page.find_all('dt')[1].text
|
||||
assert '13' in page.find_all('dd')[1].text
|
||||
assert 'text messages sent' in page.find_all('dd')[1].text
|
||||
|
||||
|
||||
def test_should_show_all_templates_on_template_statistics_page(
|
||||
@@ -129,11 +133,15 @@ def test_should_show_all_templates_on_template_statistics_page(
|
||||
|
||||
assert len(table_rows) == 2
|
||||
|
||||
assert page.find_all('dt')[0].text.strip() == 'Pickle feet'
|
||||
assert page.find_all('dd')[0].text.strip() == '206 text messages sent'
|
||||
assert 'Pickle feet' in page.find_all('dt')[0].text
|
||||
assert 'Text message template' in page.find_all('dt')[0].text
|
||||
assert '206' in page.find_all('dd')[0].text
|
||||
assert 'text messages sent' in page.find_all('dd')[0].text
|
||||
|
||||
assert page.find_all('dt')[1].text.strip() == 'Brine Shrimp'
|
||||
assert page.find_all('dd')[1].text.strip() == '13 text messages sent'
|
||||
assert 'Brine Shrimp' in page.find_all('dt')[1].text
|
||||
assert 'Text message template' in page.find_all('dt')[1].text
|
||||
assert '13' in page.find_all('dd')[1].text
|
||||
assert 'text messages sent' in page.find_all('dd')[1].text
|
||||
|
||||
|
||||
def _test_dashboard_menu(mocker, app_, usr, service, permissions):
|
||||
|
||||
@@ -32,6 +32,7 @@ def test_should_show_page_for_one_job(
|
||||
service_one,
|
||||
active_user_with_permissions,
|
||||
mock_get_service_template,
|
||||
mock_get_service_statistics,
|
||||
mock_get_job,
|
||||
mocker,
|
||||
mock_get_notifications,
|
||||
@@ -57,6 +58,7 @@ def test_should_show_updates_for_one_job_as_json(
|
||||
service_one,
|
||||
active_user_with_permissions,
|
||||
mock_get_notifications,
|
||||
mock_get_service_statistics,
|
||||
mock_get_job,
|
||||
mocker,
|
||||
fake_uuid
|
||||
@@ -112,6 +114,7 @@ def test_can_show_notifications(
|
||||
service_one,
|
||||
active_user_with_permissions,
|
||||
mock_get_notifications,
|
||||
mock_get_service_statistics,
|
||||
mocker,
|
||||
message_type,
|
||||
page_title,
|
||||
@@ -166,11 +169,14 @@ def test_can_show_notifications(
|
||||
assert 'text/csv' in csv_response.headers['Content-Type']
|
||||
|
||||
|
||||
def test_should_show_notifications_for_a_service_with_next_previous(app_,
|
||||
service_one,
|
||||
active_user_with_permissions,
|
||||
mock_get_notifications_with_previous_next,
|
||||
mocker):
|
||||
def test_should_show_notifications_for_a_service_with_next_previous(
|
||||
app_,
|
||||
service_one,
|
||||
active_user_with_permissions,
|
||||
mock_get_notifications_with_previous_next,
|
||||
mock_get_service_statistics,
|
||||
mocker
|
||||
):
|
||||
with app_.test_request_context():
|
||||
with app_.test_client() as client:
|
||||
client.login(active_user_with_permissions, mocker, service_one)
|
||||
|
||||
Reference in New Issue
Block a user