diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-12 09:54:21 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-12 09:54:21 +0100 |
commit | 70ee276344b374773902d9a96c84ad81d7bdfafe (patch) | |
tree | 28adff08f54b070d0f7f5fc7659504ff99764779 /t | |
parent | 72f991818fa1a7a027fbfc3de04185b38d2aee14 (diff) | |
parent | 6886fc0f338e30f5b31b3c89699f05ff51342735 (diff) |
Merge branch 'master' into zurich-add-internal-notes
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/zurich.t | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 790a0c3c5..7a060ae2b 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -293,17 +293,24 @@ $mech->clear_emails_ok; $mech->log_out_ok; # Test only superuser can edit bodies -$user = $mech->log_in_ok( 'dm1@example.org') ; +$user = $mech->log_in_ok( 'dm1@example.org' ); $mech->get( '/admin/body/' . $zurich->id ); is $mech->res->code, 404, "only superuser should be able to edit bodies"; $mech->log_out_ok; # Test only superuser can see "Add body" form -$user = $mech->log_in_ok( 'dm1@example.org') ; +$user = $mech->log_in_ok( 'dm1@example.org' ); $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ötigt' ); +$mech->log_out_ok; + $mech->delete_problems_for_body( 2 ); $mech->delete_user( 'dm1@example.org' ); $mech->delete_user( 'sdm1@example.org' ); |