aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-07-14 17:25:43 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-07-14 18:16:39 +0100
commit757467d961c69c8280e7d936ad1b5d566e0ed2f7 (patch)
tree2ab3fbe91f96428f09839149b5554a94053295ba /t/app/controller
parent3b632b30d1cd3f66f3ac4635cf564c37a82135a4 (diff)
Switch test to use different working cobrand.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_import.t17
1 files changed, 9 insertions, 8 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t
index 226efdd84..4dcc7e939 100644
--- a/t/app/controller/report_import.t
+++ b/t/app/controller/report_import.t
@@ -302,10 +302,12 @@ subtest "Submit a correct entry (with location)" => sub {
subtest "Submit a correct entry (with location) to cobrand" => sub {
FixMyStreet::override_config {
- ALLOWED_COBRANDS => [ 'fiksgatami' ],
- MAPIT_URL => 'http://mapit.nuug.no/',
+ ALLOWED_COBRANDS => [ 'zurich' ],
+ MAPIT_URL => 'http://global.mapit.mysociety.org/',
+ MAPIT_TYPES => [ 'O08' ],
+ MAPIT_ID_WHITELIST => [],
}, sub {
- ok $mech->host("fiksgatami.no"), 'change host to fiksgatami';
+ ok $mech->host("zurich.example.org"), 'change host to zurich';
$mech->get_ok('/import');
@@ -313,8 +315,8 @@ subtest "Submit a correct entry (with location) to cobrand" => sub {
{
with_fields => {
service => 'test-script',
- lat => '59',
- lon => '10',
+ lat => '47.4',
+ lon => '8.5',
name => 'Test User ll',
email => 'test-ll@example.com',
subject => 'Test report ll',
@@ -346,11 +348,10 @@ subtest "Submit a correct entry (with location) to cobrand" => sub {
is_deeply $mech->visible_form_values,
{
name => 'Test User ll',
- title => 'Test report ll',
detail => 'This is a test report ll',
photo => '',
phone => '',
- may_show_name => '1',
+ email => 'test-ll@example.com',
},
"check imported fields are shown";
@@ -362,7 +363,7 @@ subtest "Submit a correct entry (with location) to cobrand" => sub {
my $report = $user->problems->first;
is $report->state, 'partial', 'is still partial';
is $report->title, 'Test report ll', 'title is correct';
- is $report->lang, 'nb', 'language is correct';
+ is $report->lang, 'de-ch', 'language is correct';
$mech->delete_user($user);
};