Use Rack::Test instead of Selenium by default
This commit is contained in:
parent
b6a98ced8b
commit
54cd0d23ad
|
@ -76,7 +76,7 @@ Then 'I see the passport page' do
|
|||
when 'Серия', 'Номер'
|
||||
expect(page).to have_field key, with: value.to_i
|
||||
else
|
||||
expect(page).to have_field key, with: value
|
||||
expect(page).to have_field key, with: value unless value.blank?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,7 +13,7 @@ require 'simplecov'
|
|||
require 'cucumber/rails'
|
||||
require 'capybara-screenshot/cucumber'
|
||||
|
||||
Capybara.default_driver = :selenium_headless
|
||||
Capybara.default_driver = :rack_test
|
||||
Capybara.javascript_driver = :selenium_headless
|
||||
|
||||
# Capybara defaults to CSS3 selectors rather than XPath.
|
||||
|
|
Reference in New Issue