diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-03-11 15:55:07 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-03-11 15:55:07 +0000 |
commit | e7e0c34ff187e80665ab5fec307bdf9290bfc5d0 (patch) | |
tree | 5f35d42715d5758148e1c7b280e0dfc7837b87aa /t | |
parent | 0e33fbe0e8eacde6053ba518d8fcfb9438cc0942 (diff) | |
parent | e17eb20dbcca1f0087387f8137448902824a607e (diff) |
Merge branch '1341-friendly-ab-test'
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/report_import.t | 3 | ||||
-rw-r--r-- | t/app/controller/report_new.t | 2 | ||||
-rw-r--r-- | t/app/controller/report_new_open311.t | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 220ebaac5..26acf7790 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -159,6 +159,7 @@ subtest "Submit a correct entry" => sub { phone => '', may_show_name => '1', category => '-- Pick a category --', + gender => undef, }, "check imported fields are shown"; @@ -195,6 +196,7 @@ subtest "Submit a correct entry" => sub { phone => '', may_show_name => '1', category => '-- Pick a category --', + gender => undef, }, "check imported fields are shown"; @@ -285,6 +287,7 @@ subtest "Submit a correct entry (with location)" => sub { phone => '', may_show_name => '1', category => '-- Pick a category --', + gender => undef, }, "check imported fields are shown"; diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 4258a46a1..cf72221b4 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -498,6 +498,7 @@ foreach my $test ( my $new_values = { %{ $test->{fields} }, # values added to form %{ $test->{changes} }, # changes we expect + gender => undef, }; is_deeply $mech->visible_form_values, $new_values, "values correctly changed"; @@ -837,6 +838,7 @@ foreach my $test ( photo2 => '', photo3 => '', category => '-- Pick a category --', + gender => undef, }, "user's details prefilled" ); diff --git a/t/app/controller/report_new_open311.t b/t/app/controller/report_new_open311.t index b29642abe..22b37fd55 100644 --- a/t/app/controller/report_new_open311.t +++ b/t/app/controller/report_new_open311.t @@ -131,6 +131,7 @@ foreach my $test ( my $new_values = { %{ $test->{fields} }, # values added to form %{ $test->{changes} }, # changes we expect + gender => undef, }; is_deeply $mech->visible_form_values, $new_values, "values correctly changed"; |