mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Integrate master branch
This commit is contained in:
parent
bf3b54367b
commit
6de31605d9
8 changed files with 9 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AdminAreaNewApiUserTest < ActionDispatch::IntegrationTest
|
||||
class AdminAreaNewApiUserTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
sign_in users(:admin)
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AdminAreaProtectedAreaTest < ActionDispatch::IntegrationTest
|
||||
class AdminAreaProtectedAreaTest < ApplicationSystemTestCase
|
||||
def test_anonymous_user_is_asked_to_authenticate_when_navigating_to_protected_area
|
||||
visit admin_domains_url
|
||||
assert_text 'You need to sign in before continuing'
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AdminAreaLoginTest < ActionDispatch::IntegrationTest
|
||||
class AdminAreaSignInTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
@user = users(:admin)
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AdminAreaLogoutTest < ActionDispatch::IntegrationTest
|
||||
class AdminAreaSignOutTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
sign_in users(:admin)
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrarAreaProtectedAreaTest < ActionDispatch::IntegrationTest
|
||||
class RegistrarAreaProtectedAreaTest < ApplicationSystemTestCase
|
||||
def test_anonymous_user_is_asked_to_authenticate_when_navigating_to_protected_area
|
||||
visit registrar_domains_url
|
||||
assert_text 'You need to sign in before continuing'
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrarAreaSignInTest < JavaScriptApplicationSystemTestCase
|
||||
class RegistrarAreaMobileIDSignInTest < JavaScriptApplicationSystemTestCase
|
||||
def setup
|
||||
super
|
||||
WebMock.allow_net_connect!
|
||||
|
@ -10,7 +10,7 @@ class RegistrarAreaSignInTest < JavaScriptApplicationSystemTestCase
|
|||
@user.save
|
||||
end
|
||||
|
||||
def test_mobile_id_sign_in_page
|
||||
def test_valid_phone_number
|
||||
mock_client = Minitest::Mock.new
|
||||
mock_client.expect(:authenticate,
|
||||
OpenStruct.new(user_id_code: '1234', challenge_id: '1234'),
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrarAreaLoginTest < ActionDispatch::IntegrationTest
|
||||
class RegistrarAreaPasswordSignInTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
@user = users(:api_bestnames)
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrarAreaLogoutTest < ActionDispatch::IntegrationTest
|
||||
class RegistrarAreaSignOutTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
sign_in users(:api_bestnames)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue