From f7989b84cb8b2042152a73981312c65bd6c8ad66 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 12 Mar 2021 16:18:55 +0000 Subject: [PATCH] Add captions to tables Co-authored-by: Tom Byers --- app/templates/views/performance.html | 3 +++ tests/app/main/views/test_performance.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/templates/views/performance.html b/app/templates/views/performance.html index e3ab343bd..663db2f46 100644 --- a/app/templates/views/performance.html +++ b/app/templates/views/performance.html @@ -55,6 +55,7 @@
{% call(item, row_number) list_table( notifications_by_type, + caption='Messages sent since May 2016', caption_visible=False, field_headings=[ 'Date', @@ -97,6 +98,7 @@
{% call(item, row_number) list_table( processing_time | reverse, + caption='Messages sent within 10 seconds', caption_visible=False, field_headings=[ 'Date', 'Percentage' @@ -133,6 +135,7 @@
{% call(item, row_number) list_table( organisations_using_notify, + caption='Organisations using Notify', caption_visible=False, field_headings=[ 'Organisation', 'Number of live services' diff --git a/tests/app/main/views/test_performance.py b/tests/app/main/views/test_performance.py index cd691276b..7a544e6f0 100644 --- a/tests/app/main/views/test_performance.py +++ b/tests/app/main/views/test_performance.py @@ -122,6 +122,7 @@ def test_should_render_performance_page( '987.7 million text messages ' '1.2 million letters ' '' + 'Messages sent since May 2016 ' 'Date Emails Text messages Letters ' '21 February 2021 1,234,567 123,456 123 ' '22 February 2021 1 2 3 ' @@ -135,6 +136,7 @@ def test_should_render_performance_page( 'Messages sent within 10 seconds ' 'Average ' '96.8% on average ' + 'Messages sent within 10 seconds ' 'Date Percentage ' '27 February 2021 98.6% ' '26 February 2021 96.5% ' @@ -148,6 +150,7 @@ def test_should_render_performance_page( 'Organisations using Notify ' 'Organisations 111 organisations ' 'Services 9,999 services ' + 'Organisations using Notify ' 'Organisation Number of live services ' 'Department of Examples and Patterns 2 ' 'Department of One Service 1'