From 54cd0d23adbaaf4c56b84e0c5b1abbf8edc3d136 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 13 Dec 2018 05:09:30 +0500 Subject: [PATCH] Use Rack::Test instead of Selenium by default --- features/step_definitions/stepdefs.rb | 2 +- features/support/env.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/stepdefs.rb b/features/step_definitions/stepdefs.rb index ab96e80..33132bf 100644 --- a/features/step_definitions/stepdefs.rb +++ b/features/step_definitions/stepdefs.rb @@ -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 diff --git a/features/support/env.rb b/features/support/env.rb index 7c5fee1..972dbb3 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -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.