mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Add mocked challenge_id to be displayed inside flash message
This commit is contained in:
parent
2bcedd0fac
commit
0fa30591a8
1 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,8 @@ class RegistrarSignInTest < JavascriptIntegrationTest
|
||||||
|
|
||||||
def test_mobile_id_sign_in_page
|
def test_mobile_id_sign_in_page
|
||||||
mock_client = Minitest::Mock.new
|
mock_client = Minitest::Mock.new
|
||||||
mock_client.expect(:authenticate, OpenStruct.new(user_id_code: '1234'),
|
mock_client.expect(:authenticate,
|
||||||
|
OpenStruct.new(user_id_code: '1234', challenge_id: '1234'),
|
||||||
[{ phone: "+3721234",
|
[{ phone: "+3721234",
|
||||||
message_to_display: "Authenticating",
|
message_to_display: "Authenticating",
|
||||||
service_name: "Testimine" }])
|
service_name: "Testimine" }])
|
||||||
|
@ -27,7 +28,7 @@ class RegistrarSignInTest < JavascriptIntegrationTest
|
||||||
click_button 'Login'
|
click_button 'Login'
|
||||||
|
|
||||||
flash_message = page.find('div.bg-success')
|
flash_message = page.find('div.bg-success')
|
||||||
assert_equal('Confirmation sms was sent to your phone. Verification code is .',
|
assert_equal('Confirmation sms was sent to your phone. Verification code is 1234.',
|
||||||
flash_message.text)
|
flash_message.text)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue