aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/cobrand/tfl.t2
-rw-r--r--t/map/tests.t3
2 files changed, 4 insertions, 1 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index e61c6d1bd..cdf3b1bab 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -551,11 +551,13 @@ subtest 'check correct base URL & title in AJAX pins' => sub {
};
subtest 'check report age on /around' => sub {
+ $mech->log_in_ok($staffuser->email);
my $report = FixMyStreet::DB->resultset("Problem")->find({ title => 'Test Report 1'});
$report->update({ state => 'confirmed' });
$mech->get_ok( '/around?lat=' . $report->latitude . '&lon=' . $report->longitude );
$mech->content_contains($report->title);
+ $mech->content_contains('item-list__item__borough">Bromley');
$report->update({
confirmed => \"current_timestamp-'7 weeks'::interval",
diff --git a/t/map/tests.t b/t/map/tests.t
index 02ec4e69d..f0c563c11 100644
--- a/t/map/tests.t
+++ b/t/map/tests.t
@@ -15,6 +15,7 @@ my $requires = {
'IsleOfWight' => 'map-wmts-isleofwight.js',
'OSM' => 'OpenStreetMap.js',
'MasterMap' => 'map-mastermap.js',
+ 'Northamptonshire' => 'map-wms-northamptonshire.js',
'CycleMap' => 'OpenStreetMap.js',
'MapQuest' => 'OpenStreetMap.js',
'StreetView' => 'map-streetview.js',
@@ -23,7 +24,7 @@ my $requires = {
};
foreach (FixMyStreet::Map->maps) {
- next if /WMTSBase|UKCouncilWMTS/; # Only its subclasses have JS
+ next if /WMTSBase|UKCouncilWMTS|WMSBase|WMXBase/; # Only its subclasses have JS
my $js = $_->map_javascript;
my $test_file = $js->[-1];
s/.*:://;