mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
add new tests for admin users
This commit is contained in:
parent
54a8c65c27
commit
571755ffc3
2 changed files with 68 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue