aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth_social.t
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2019-10-30 19:28:55 +0100
committerMarius Halden <marius.h@lden.org>2019-10-30 19:28:55 +0100
commit377bd96aab7cad3434185c30eb908c9da447fe40 (patch)
tree7ec5527e205d5b62caaa862a7de8cd25199c8bf0 /t/app/controller/auth_social.t
parent56f61b1441070aa0b9ddcfc74aca46c20313609f (diff)
parent92b253904062edd533e55c22824de6fd01e2f7c1 (diff)
Merge tag 'v2.6' into fiksgatami-dev
Diffstat (limited to 't/app/controller/auth_social.t')
-rw-r--r--t/app/controller/auth_social.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/auth_social.t b/t/app/controller/auth_social.t
index 031fb8d9e..ac3d98b15 100644
--- a/t/app/controller/auth_social.t
+++ b/t/app/controller/auth_social.t
@@ -103,8 +103,8 @@ for my $fb_state ( 'refused', 'no email', 'existing UID', 'okay' ) {
# We don't have an email, so check that we can still submit it,
# and the ID carries through the confirmation
$fields->{username} = $fb_email;
- $fields->{name} = 'Ffion Tester';
- $mech->submit_form(with_fields => $fields);
+ $fields->{name} = 'Ffion Tester' unless $page eq 'my';
+ $mech->submit_form(with_fields => $fields, $page eq 'my' ? (button => 'sign_in_by_code') : ());
$mech->content_contains('Nearly done! Now check your email');
my $url = $mech->get_link_from_email;
@@ -211,8 +211,8 @@ for my $tw_state ( 'refused', 'existing UID', 'no email' ) {
# We don't have an email, so check that we can still submit it,
# and the ID carries through the confirmation
$fields->{username} = $tw_email;
- $fields->{name} = 'Ffion Tester';
- $mech->submit_form(with_fields => $fields);
+ $fields->{name} = 'Ffion Tester' unless $page eq 'my';
+ $mech->submit_form(with_fields => $fields, $page eq 'my' ? (button => 'sign_in_by_code') : ());
$mech->content_contains('Nearly done! Now check your email');
my $url = $mech->get_link_from_email;