aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/isleofwight.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/isleofwight.t')
-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/',