aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/dashboard.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-16 13:33:09 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-16 13:33:09 +0100
commit0b407b081762ffcb4ab3be666c7b12f67f9d4a4f (patch)
tree2fe19cf59a7f20e0de60920c5c45c867b1463f2d /t/app/controller/dashboard.t
parent3f2753b72d70a4b5144b3b380c821ba16b224939 (diff)
add closed state to page
Diffstat (limited to 't/app/controller/dashboard.t')
-rw-r--r--t/app/controller/dashboard.t20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t
index 356c06d93..b477c03bf 100644
--- a/t/app/controller/dashboard.t
+++ b/t/app/controller/dashboard.t
@@ -84,6 +84,7 @@ my $categories = scraper {
process "tr[id=avg_marked] > td", 'avg_marked[]' => 'TEXT',
process "tr[id=avg_fixed] > td", 'avg_fixed[]' => 'TEXT',
process "tr[id=not_marked] > td", 'not_marked[]' => 'TEXT',
+ process "tr[id=closed] > td", 'closed[]' => 'TEXT',
process "table[id=reports] > tr > td", 'report_lists[]' => scraper {
process 'ul > li', 'reports[]' => 'TEXT'
},
@@ -296,6 +297,25 @@ foreach my $test (
marked => [4,4,4,4]
}
},
+ {
+ desc => 'marked as closed',
+ confirm_dt => DateTime->now->subtract( days => 1 ),
+ mark_dt => DateTime->now,
+ state => 'closed',
+ counts => {
+ totals => [6,6,9,10],
+ user => [1,1,1,2],
+ council => [2,2,3,3],
+ total_fixed => [3,3,4,5],
+ avg_fixed => [5,5,7,7],
+ avg_marked => [2,2,2,2],
+ investigating => [1,1,1,1],
+ in_progress => [1,1,1,1],
+ planned => [2,2,2,2],
+ closed => [1,1,1,1],
+ marked => [5,5,5,5]
+ }
+ },
) {
subtest $test->{desc} => sub {
make_problem(