diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-10 17:25:36 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-12-11 07:31:36 +0000 |
commit | 9ff66d77bc44dbbb3d17512c8edc0f0f3334986d (patch) | |
tree | 025d0b80efe956fe36e9834747b59657399e991c /t/cobrand/tfl.t | |
parent | 6ea3d7f26b8b54ed52e0a90f1e4d7976081c4e3f (diff) |
[TfL] Do not say council in not responsible.
Diffstat (limited to 't/cobrand/tfl.t')
-rw-r--r-- | t/cobrand/tfl.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t index 287a8c98e..9624a6aae 100644 --- a/t/cobrand/tfl.t +++ b/t/cobrand/tfl.t @@ -813,6 +813,19 @@ FixMyStreet::override_config { $staffuser->unset_extra_metadata('2fa_secret'); $staffuser->update; }; + + subtest "check not responsible as correct text" => sub { + my ($p) = $mech->create_problems_for_body(1, $body->id, 'NotResp'); + my $c = FixMyStreet::DB->resultset('Comment')->create({ + problem => $p, user => $p->user, anonymous => 't', text => 'Update text', + problem_state => 'not responsible', state => 'confirmed', mark_fixed => 0, + confirmed => DateTime->now(), + }); + $mech->get_ok('/report/' . $p->id); + $mech->content_contains("not TfL’s responsibility", "not reponsible message contains correct text"); + $p->comments->delete; + $p->delete; + }; }; FixMyStreet::override_config { |