diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-05-07 16:25:45 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-05-07 16:25:45 +0100 |
commit | 6fad0a9adccae962664ccd322e4587e1befeee53 (patch) | |
tree | 684c4145bdfb92b3a069e2d71c293e9618f31f07 /t/app/controller/dashboard.t | |
parent | 7cd75c95b5b910b44687b3b478bd0eadbf6f0549 (diff) | |
parent | 5ce552af2b66613272dc9cfe2d46532e057f44f7 (diff) |
Merge branch 'fix-dashboard-report-csv'
Diffstat (limited to 't/app/controller/dashboard.t')
-rw-r--r-- | t/app/controller/dashboard.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index 72fc00128..c62ada89a 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -70,6 +70,7 @@ foreach my $problem (@fixed_problems) { foreach my $problem (@closed_problems) { $problem->update({ state => 'closed' }); + $mech->create_comment_for_problem($problem, $counciluser, 'Name', 'in progress text', 0, 'confirmed', 'in progress'); $mech->create_comment_for_problem($problem, $counciluser, 'Title', 'text', 0, 'confirmed', 'closed'); } @@ -214,7 +215,7 @@ FixMyStreet::override_config { subtest 'export updates as csv' => sub { $mech->get_ok('/dashboard?updates=1&export=1'); my @rows = $mech->content_as_csv; - is scalar @rows, 15, '1 (header) + 14 (updates) = 15 lines'; + is scalar @rows, 18, '1 (header) + 17 (updates) = 18 lines'; is scalar @{$rows[0]}, 8, '8 columns present'; is_deeply $rows[0], |