aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/app/controller/report_updates.t5
-rw-r--r--t/open311/getservicerequestupdates.t4
2 files changed, 6 insertions, 3 deletions
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t
index cf6af16cb..c4c50f4d1 100644
--- a/t/app/controller/report_updates.t
+++ b/t/app/controller/report_updates.t
@@ -577,7 +577,10 @@ for my $test (
is $update->problem_state, $test->{state}, 'problem state set';
my $update_meta = $mech->extract_update_metas;
- like $update_meta->[0], qr/marked as $test->{fields}->{state}$/, 'update meta includes state change';
+ # setting it to confirmed shouldn't say anything
+ if ( $test->{fields}->{state} ne 'confirmed' ) {
+ like $update_meta->[0], qr/marked as $test->{fields}->{state}$/, 'update meta includes state change';
+ }
like $update_meta->[0], qr{Test User \(Westminster City Council\)}, 'update meta includes council name';
$mech->content_contains( 'Test User (<strong>Westminster City Council</strong>)', 'council name in bold');
diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t
index 7ec8d5ae0..e08d2b1e2 100644
--- a/t/open311/getservicerequestupdates.t
+++ b/t/open311/getservicerequestupdates.t
@@ -136,7 +136,7 @@ for my $test (
start_state => 'fixed - user',
close_comment => 0,
mark_fixed => 0,
- mark_open => 0,
+ mark_open => 1,
problem_state => 'confirmed',
end_state => 'confirmed',
},
@@ -148,7 +148,7 @@ for my $test (
start_state => 'closed',
close_comment => 0,
mark_fixed => 0,
- mark_open => 0,
+ mark_open => 1,
problem_state => 'confirmed',
end_state => 'confirmed',
},