1
0
Fork 0

Use Rack::Test instead of Selenium by default

This commit is contained in:
Alex Kotov 2018-12-13 05:09:30 +05:00
parent b6a98ced8b
commit 54cd0d23ad
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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.