diff options
author | Matthew Somerville <matthew@mysociety.org> | 2017-10-05 14:14:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2017-10-05 14:14:06 +0100 |
commit | 4d5828bdc5076dcc08d73a0760c25fd434ce3dff (patch) | |
tree | e43540168e15ac0ec490da234f3ce1118db971cb /t/app/controller | |
parent | 861b3ace16097b5558d749210509afe4f0bdf70f (diff) | |
parent | bb24ffc0e9e3eaf2b9cfb7e88020a9b5b0328a3e (diff) |
Merge remote-tracking branch 'origin/fix-geographic-mobile-numbers'
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/auth_phone.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/auth_phone.t b/t/app/controller/auth_phone.t index 8673f5c62..435ea7552 100644 --- a/t/app/controller/auth_phone.t +++ b/t/app/controller/auth_phone.t @@ -47,7 +47,7 @@ subtest 'Log in using mobile, by text' => sub { }, sub { $mech->submit_form_ok({ form_name => 'general_auth', - fields => { username => '+61491570156', password_register => 'secret' }, + fields => { username => '+18165550100', password_register => 'secret' }, button => 'sign_in_by_code', }, "sign in using mobile"); @@ -61,7 +61,7 @@ subtest 'Log in using mobile, by text' => sub { with_fields => { code => $code } }, 'submit correct code'); - my $user = FixMyStreet::App->model('DB::User')->find( { phone => '+61491570156' } ); + my $user = FixMyStreet::App->model('DB::User')->find( { phone => '+18165550100' } ); ok $user, "user created"; is $mech->uri->path, '/my', "redirected to the 'my' section of site"; $mech->logged_in_ok; @@ -76,13 +76,13 @@ subtest 'Log in using mobile, by password' => sub { $mech->get_ok('/auth'); $mech->submit_form_ok({ form_name => 'general_auth', - fields => { username => '+61491570156', password_sign_in => 'incorrect' }, + fields => { username => '+18165550100', password_sign_in => 'incorrect' }, button => 'sign_in_by_password', }, "sign in using wrong password"); $mech->content_contains('There was a problem'); $mech->submit_form_ok({ form_name => 'general_auth', - fields => { username => '+61491570156', password_sign_in => 'secret' }, + fields => { username => '+18165550100', password_sign_in => 'secret' }, button => 'sign_in_by_password', }, "sign in using password"); |