aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-08-21 17:10:46 +0100
committerStruan Donald <struan@exo.org.uk>2019-09-27 17:35:15 +0100
commit6041331bceb459c555150da863509a25edff401d (patch)
tree4dc92d4d2a6db2aa339bd298c6abeefdfbaaa185 /t/cobrand
parent225574a9ab1edae754301190997f31e55b43d096 (diff)
[IsleOfWight] display external id as ref no
Fixes mysociety/fixmystreet-commercial#1522
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/isleofwight.t14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/cobrand/isleofwight.t b/t/cobrand/isleofwight.t
index 8afc2f29b..ddca0b97c 100644
--- a/t/cobrand/isleofwight.t
+++ b/t/cobrand/isleofwight.t
@@ -29,7 +29,8 @@ my @reports = $mech->create_problems_for_body(1, $isleofwight->id, 'An Isle of w
lastupdate => '2019-05-25 09:00',
latitude => 50.7108,
longitude => -1.29573,
- user => $user
+ user => $user,
+ external_id => 101202303
});
subtest "check clicking all reports link" => sub {
@@ -45,6 +46,17 @@ subtest "check clicking all reports link" => sub {
$mech->content_contains("Island Roads", "is still on cobrand");
};
+subtest "use external id for reference number" => sub {
+ FixMyStreet::override_config {
+ MAPIT_URL => 'http://mapit.uk/',
+ ALLOWED_COBRANDS => 'isleofwight',
+ }, sub {
+ $mech->get_ok('/report/' . $reports[0]->id);
+ };
+
+ $mech->content_contains("101202303", "Display external id as reference number");
+};
+
subtest "only original reporter can comment" => sub {
FixMyStreet::override_config {
MAPIT_URL => 'http://mapit.uk/',