aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/zurich.t
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-06-04 15:18:17 +0100
committerDave Arter <davea@mysociety.org>2015-10-06 09:09:26 +0100
commit1304f2f67d6b0d3005e60d5eb89e48a91c115c2e (patch)
tree1dcaea7acc0cd1ff53f417ed4e0ae365872bcdcc /t/cobrand/zurich.t
parent2b2168df76e20241514d01a2c6cc5c503d4ced6c (diff)
[Zurich] Test that external message is visible for certain states
Diffstat (limited to 't/cobrand/zurich.t')
-rw-r--r--t/cobrand/zurich.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 775ccaf59..4429a94ca 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -879,16 +879,16 @@ subtest 'Status update shown as appropriate' => sub {
}, sub {
# ALL closed states must hide the public_response edit, and public ones
# must show the answer in blue.
- for (['planned', 1, 0],
- ['fixed - council', 0, 1],
- ['closed', 0, 1],
- ['hidden', 0, 0])
+ for (['planned', 1, 0, 0],
+ ['fixed - council', 0, 1, 0],
+ ['closed', 0, 1, 0],
+ ['hidden', 0, 0, 1])
{
- my ($state, $update, $public) = @$_;
+ my ($state, $update, $public, $user_response) = @$_;
$report->update({ state => $state });
$mech->get_ok( '/admin/report_edit/' . $report->id );
contains_or_lacks($mech, $update, "<textarea name='status_update'");
- contains_or_lacks($mech, $public, '<div class="admin-official-answer">');
+ contains_or_lacks($mech, $public || $user_response, '<div class="admin-official-answer">');
if ($public) {
$mech->get_ok( '/report/' . $report->id );