diff options
author | M Somerville <matthew-github@dracos.co.uk> | 2020-10-05 16:35:22 +0100 |
---|---|---|
committer | M Somerville <matthew-github@dracos.co.uk> | 2020-10-06 18:05:51 +0100 |
commit | f32e0900dd8c0a97c2b2214c973394e1fda2cb0e (patch) | |
tree | 131537542c9f2f58d54921319849f4ea5a9e9fa4 /t | |
parent | 7135fb0076664cdc13d2af537a2a00b37d61fa54 (diff) |
[Peterborough] Add USRN, nearest address to CSV.
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/peterborough.t | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/t/cobrand/peterborough.t b/t/cobrand/peterborough.t index 5b461d4f2..f7e45f190 100644 --- a/t/cobrand/peterborough.t +++ b/t/cobrand/peterborough.t @@ -117,13 +117,19 @@ subtest "extra bartec params are sent to open311" => sub { geocode => { resourceSets => [ { resources => [ { + name => '12 A Street, XX1 1SZ', address => { addressLine => '12 A Street', postalCode => 'XX1 1XZ' } } ] } ] - } + }, + extra => { + _fields => [ + { name => 'site_code', value => '12345', }, + ], + }, } ); my $test_data = FixMyStreet::Script::Reports::send(); @@ -139,5 +145,19 @@ subtest "extra bartec params are sent to open311" => sub { }; }; +subtest 'Dashboard CSV extra columns' => sub { + my $staffuser = $mech->create_user_ok('counciluser@example.com', name => 'Council User', + from_body => $peterborough, password => 'password'); + $mech->log_in_ok( $staffuser->email ); + FixMyStreet::override_config { + MAPIT_URL => 'http://mapit.uk/', + ALLOWED_COBRANDS => 'peterborough', + }, sub { + $mech->get_ok('/dashboard?export=1'); + }; + $mech->content_contains('"Reported As",USRN,"Nearest address"'); + $mech->content_contains('peterborough,,12345,"12 A Street, XX1 1SZ"'); +}; + done_testing; |