diff options
author | Struan Donald <struan@exo.org.uk> | 2020-08-21 13:48:57 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-09-10 10:53:41 +0100 |
commit | 5da5a6ee1f85df8946c795af82b6353a31eb1d97 (patch) | |
tree | 0c46c96754c60e53738a96c53ee8f9b224016459 /t | |
parent | 4b6baae9c4ac6353357a2f46355aa7eb9c8c10ec (diff) |
[UK] enable extra state mapping on .com
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/northamptonshire.t | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/t/cobrand/northamptonshire.t b/t/cobrand/northamptonshire.t index 5758f700f..766922c4a 100644 --- a/t/cobrand/northamptonshire.t +++ b/t/cobrand/northamptonshire.t @@ -210,6 +210,42 @@ subtest 'check further investigation state' => sub { }; $mech->content_contains('Under further investigation'); + + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ { fixmystreet => '.' } ], + MAPIT_URL => 'http://mapit.uk/', + COBRAND_FEATURES => { + extra_state_mapping => { + northamptonshire => { + fixed => { + further => 'Under further investigation' + } + }, + fixmystreet => { + 'Northamptonshire County Council' => { + fixed => { + further => 'Under further investigation' + } + } + } + } + } + }, sub { + $mech->get_ok('/report/' . $comment->problem_id); + }; + + $mech->content_contains('Investigating'); + $mech->content_lacks('Under further investigation'); + + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ { fixmystreet => '.' } ], + MAPIT_URL => 'http://mapit.uk/', + }, sub { + $mech->get_ok('/report/' . $comment->problem_id); + }; + + $mech->content_contains('Investigating'); + $mech->content_lacks('Under further investigation'); }; subtest 'check pin colour / reference shown' => sub { |