diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-24 12:34:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-24 12:34:42 +0100 |
commit | cc8b152ee383e8b596926e3f2cab39557b353bcc (patch) | |
tree | 776bc8c296d1af57f2d481166b4166c441d4cd1d /t/app | |
parent | edf59d8605000c4363ce4d79f270559c522bc63e (diff) |
Don't show email field on reporting if logged in.
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/report_import.t | 8 | ||||
-rw-r--r-- | t/app/controller/report_new.t | 1 |
2 files changed, 2 insertions, 7 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 154de13d8..ba73b2555 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -119,7 +119,6 @@ subtest "Submit a correct entry" => sub { is_deeply $mech->visible_form_values, { name => 'Test User', - email => 'test@example.com', title => 'Test report', detail => 'This is a test report', photo => '', @@ -134,7 +133,6 @@ subtest "Submit a correct entry" => sub { { with_fields => { name => 'New Test User', - email => 'test@example.com', title => 'New Test report', detail => 'This is a test report', phone => '01234 567 890', @@ -193,14 +191,13 @@ subtest "Submit a correct entry (with location)" => sub { # go to the token url $mech->get_ok($token_url); - # check that we are on '/around' - is $mech->uri->path, '/report/new', "sent to /around"; + # check that we are on '/report/new' + is $mech->uri->path, '/report/new', "sent to /report/new"; # check that fields are prefilled for us is_deeply $mech->visible_form_values, { name => 'Test User ll', - email => 'test-ll@example.com', title => 'Test report ll', detail => 'This is a test report ll', photo => '', @@ -215,7 +212,6 @@ subtest "Submit a correct entry (with location)" => sub { { with_fields => { name => 'New Test User ll', - email => 'test-ll@example.com', title => 'New Test report ll', detail => 'This is a test report ll', phone => '01234 567 890', diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 01c29ecf4..3e486d22c 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -406,7 +406,6 @@ foreach my $test ( title => '', detail => '', may_show_name => '1', - email => $test_email, name => 'Test User', phone => '01234 567 890', photo => '', |