diff options
author | Marius Halden <marius.h@lden.org> | 2016-07-06 19:43:59 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-07-06 19:43:59 +0200 |
commit | 26ef9e161e7ca4bbcf6bcbddb1ba4f215bc349ec (patch) | |
tree | a6a4d1019a38e99c7492416af91eb8cb5a90c6db /t/cobrand | |
parent | 2e7086d04d1ea729bf898acc0cae6835518bc106 (diff) | |
parent | 370067141211acde05766fcaa3bfad0f8b232750 (diff) |
Merge tag 'v1.8.4' into fiksgatami-devfiksgatami-dev-1.8
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 11 | ||||
-rw-r--r-- | t/cobrand/zurich_attachments.txt | 2 |
2 files changed, 4 insertions, 9 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index cf66136e5..a595f48c9 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -810,17 +810,12 @@ subtest "photo must be supplied for categories that require it" => sub { MAPIT_ID_WHITELIST => [ 423017 ], MAP_TYPE => 'Zurich,OSM', }, sub { - $mech->post_ok( '/report/new', { + $mech->get_ok('/report/new?lat=47.381817&lon=8.529156'); + $mech->submit_form_ok({ with_fields => { detail => 'Problem-Bericht', - lat => 47.381817, - lon => 8.529156, email => 'user@example.org', - pc => '', - name => '', category => 'Graffiti - photo required', - photo => '', - submit_problem => 1, - }); + }}); is $mech->res->code, 200, "missing photo shouldn't return anything but 200"; $mech->content_contains(_("Photo is required."), 'response should contain photo error message'); }; diff --git a/t/cobrand/zurich_attachments.txt b/t/cobrand/zurich_attachments.txt index bdc4333bf..bf8d6872b 100644 --- a/t/cobrand/zurich_attachments.txt +++ b/t/cobrand/zurich_attachments.txt @@ -14,7 +14,7 @@ Gr=C3=BCezi External Body, =C3=96ffentliche URL: http://www.example.org/report/REPORT_ID
-Bei Fragen zu "Z=C3=BCri wie neu" wenden Sie sich bitte an
+Bei Fragen zu "Z=C3=BCri wie neu" wenden Sie sich bitte an =
gis-zentrum@zuerich.ch.=
--BOUNDARY
|