System tests added

This commit is contained in:
Christoph Haas 2020-10-30 18:28:23 +01:00
parent d0057e490f
commit a68c2b8422
2 changed files with 21 additions and 0 deletions

View 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
View 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