System tests added
This commit is contained in:
parent
d0057e490f
commit
a68c2b8422
2 changed files with 21 additions and 0 deletions
7
test/application_system_test_case.rb
Normal file
7
test/application_system_test_case.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
require "test_helper"
|
||||||
|
|
||||||
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||||
|
#driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
|
||||||
|
driven_by :selenium, using: :firefox, screen_size: [1400, 1400]
|
||||||
|
#driven_by :selenium, using: :headless_firefox, screen_size: [1400, 1400]
|
||||||
|
end
|
||||||
14
test/system/users_test.rb
Normal file
14
test/system/users_test.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
require "application_system_test_case"
|
||||||
|
|
||||||
|
class UsersTest < ApplicationSystemTestCase
|
||||||
|
test "go to login page" do
|
||||||
|
visit new_user_session_path
|
||||||
|
|
||||||
|
fill_in 'user[email]', with: 'admin@debian.ork'
|
||||||
|
fill_in 'user[password]', with: 'adminsecret'
|
||||||
|
|
||||||
|
click_on 'commit'
|
||||||
|
|
||||||
|
assert_text 'Signed in successfully'
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue