adding chrome o run selenium tests

parent 82a89f57
......@@ -107,6 +107,7 @@ group :cucumber, :test do
# Selenium WebDriver 3+ depends on geckodriver
gem 'selenium-webdriver'
gem 'geckodriver-helper'
gem 'chromedriver-helper'
# Requires custom dependencies
......@@ -162,9 +162,8 @@
And I fill in "Classify your new friend" with "friends" within "#on-accept-information-1"
And I choose "Accept"
And I follow "Save tasks"
And I should not see "josesilva wants to be your friend."
When I go to josesantos's control panel
And I follow "Friends" within "#section-relationships"
And I follow "Friends"
Then I should see "josesilva"
......@@ -11,11 +11,25 @@ Capybara.register_driver :selenium do |app|
options.profile = profile
driver = app, browser: :firefox, options: options
when 'chrome'
capabilities =
chromeOptions: { args: %w(headless disable-gpu) }
driver =, browser: :chrome, desired_capabilities: capabilities)
puts '[ERROR] :: Unsupported web browser, use Firefox 60.3.0 instead.'
Capybara.register_driver :chrome do |app|
Capybara.register_driver :headless_chrome do |app|
Capybara.javascript_driver = :headless_chrome
Before('@ignore-hidden-elements') do
Capybara.ignore_hidden_elements = true
......@@ -57,7 +57,8 @@ namespace :ci do
sh 'ruby', '-Itest', *tests unless tests.empty?
sh 'cucumber', *features unless features.empty?
sh 'xvfb-run', '-a', '--server-args="-screen 0, 1280x1024x24"', 'cucumber', '-p', 'selenium', *features unless features.empty?
#sh 'xvfb-run', '-a', '--server-args="-screen 0, 1280x1024x24"', 'cucumber', '-p', 'selenium', *features unless features.empty?
sh 'cucumber', '-p', 'selenium', *features unless features.empty?
changed_plugins.each do |plugin|
if $broken_plugins.include?(plugin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment