aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-05 13:39:01 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-05 13:39:01 +0100
commit2e925df7a1ffac90bc29ef7fa67dcf6bd1648a9d (patch)
tree013a886be3144a3ddd8e7c42549e8adb38d562bf
parent7ae561917867bc4b3cc711108c053537f306d4a5 (diff)
[Zurich] Add test for missing phone number
-rw-r--r--t/cobrand/zurich.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index ef207421b..69cf82db9 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -251,6 +251,13 @@ $mech->get_ok( '/admin/bodies' );
$mech->content_lacks( '<form method="post" action="bodies"' );
$mech->log_out_ok;
+# Test phone number is mandatory
+$user = $mech->log_in_ok( 'dm1@example.org' );
+$mech->get_ok( '/report/new?latitude=51.500802;longitude=-0.143005' );
+$mech->submit_form( with_fields => { phone => "" } );
+$mech->content_contains( 'Diese Information wird ben&ouml;tigt' );
+$mech->log_out_ok;
+
$mech->delete_problems_for_body( 2 );
$mech->delete_user( 'dm1@example.org' );
$mech->delete_user( 'sdm1@example.org' );