aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index b82d50b68..f2dd754f1 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -81,7 +81,8 @@ my $external_body2 = $mech->create_body_ok( 4, 'Another Body External',
sub get_export_rows_count {
my $mech = shift;
- $mech->get_ok( '/admin/stats?export=1' );
+ my $extra = shift || '';
+ $mech->get_ok( '/admin/stats?export=1' . $extra);
is $mech->res->code, 200, 'csv retrieved ok';
is $mech->content_type, 'text/csv', 'content_type correct' and do {
my @lines = split /\n/, $mech->content;
@@ -871,6 +872,8 @@ subtest "test stats" => sub {
is $export_count - $EXISTING_REPORT_COUNT, 3, 'Correct number of reports';
$mech->content_contains('fixed - council');
}
+ $export_count = get_export_rows_count($mech, '&ym=' . DateTime->now->strftime("%m.%Y"));
+ is $export_count - $EXISTING_REPORT_COUNT, 3, 'Correct number of reports when filtering by month';
};
subtest "test admin_log" => sub {