add new tests for admin users

This commit is contained in:
Oleg Hasjanov 2021-01-15 17:12:04 +02:00
parent 54a8c65c27
commit 571755ffc3
2 changed files with 68 additions and 2 deletions

View file

@ -13,6 +13,7 @@ class ApplicationSystemTestCase < ActionDispatch::IntegrationTest
WebMock.reset!
Capybara.reset_sessions!
Capybara.use_default_driver
end
end
@ -28,17 +29,21 @@ class JavaScriptApplicationSystemTestCase < ApplicationSystemTestCase
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--window-size=1400,1400')
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
Capybara.exact = true
end
Capybara.server = :puma, { Silent: true }
def setup
DatabaseCleaner.start
super
Capybara.current_driver = :chrome
end
def teardown