diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-21 23:00:53 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-30 21:13:33 +0100 |
commit | 4e6d1c359c94b0aa864bc48f28a8962113a47629 (patch) | |
tree | 67ba615aac2413cc06cde4738455461c21ff1b0d /t/app/controller/auth_social.t | |
parent | 57f52190fc1edb515563d524b179906a3006ba78 (diff) |
Add ability to confirm reports/updates via text.
Diffstat (limited to 't/app/controller/auth_social.t')
-rw-r--r-- | t/app/controller/auth_social.t | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/t/app/controller/auth_social.t b/t/app/controller/auth_social.t index d16a0102e..031fb8d9e 100644 --- a/t/app/controller/auth_social.t +++ b/t/app/controller/auth_social.t @@ -102,13 +102,7 @@ for my $fb_state ( 'refused', 'no email', 'existing UID', 'okay' ) { $mech->content_contains('We need your email address, please give it below.'); # We don't have an email, so check that we can still submit it, # and the ID carries through the confirmation - if ($page eq 'update') { - $fields->{rznvy} = $fb_email; - } elsif ($page eq 'report') { - $fields->{email} = $fb_email; - } else { - $fields->{username} = $fb_email; - } + $fields->{username} = $fb_email; $fields->{name} = 'Ffion Tester'; $mech->submit_form(with_fields => $fields); $mech->content_contains('Nearly done! Now check your email'); @@ -216,13 +210,7 @@ for my $tw_state ( 'refused', 'existing UID', 'no email' ) { $mech->content_contains('We need your email address, please give it below.'); # We don't have an email, so check that we can still submit it, # and the ID carries through the confirmation - if ($page eq 'update') { - $fields->{rznvy} = $tw_email; - } elsif ($page eq 'report') { - $fields->{email} = $tw_email; - } else { - $fields->{username} = $tw_email; - } + $fields->{username} = $tw_email; $fields->{name} = 'Ffion Tester'; $mech->submit_form(with_fields => $fields); $mech->content_contains('Nearly done! Now check your email'); |