From 783d4dd77494785e67c71c32a73ca338fea3a075 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 11 Apr 2013 10:52:32 +0200 Subject: [PATCH] update cucumber, capybara and mini-profiler let capybara find hidden elements (2.0 behavior) --- Gemfile.lock | 19 +++++++++---------- features/support/tracks_cucumber_settings.rb | 1 + features/toggle_containers.feature | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 08d740c3..c67213a2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -43,13 +43,12 @@ GEM uniform_notifier cache_digests (0.2.0) actionpack (>= 3.2) - capybara (2.0.3) + capybara (2.1.0) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) - selenium-webdriver (~> 2.0) - xpath (~> 1.0.0) + xpath (~> 2.0) childprocess (0.3.9) ffi (~> 1.0, >= 1.0.11) coffee-rails (3.2.2) @@ -59,7 +58,7 @@ GEM coffee-script-source execjs coffee-script-source (1.6.2) - cucumber (1.2.4) + cucumber (1.2.5) builder (>= 2.1.2) diff-lcs (>= 1.1.3) gherkin (~> 2.11.7) @@ -80,9 +79,9 @@ GEM factory_girl (~> 4.2.0) railties (>= 3.0.0) ffi (1.6.0) - gherkin (2.11.7) + gherkin (2.11.8) multi_json (~> 1.3) - hike (1.2.1) + hike (1.2.2) htmlentities (4.3.1) i18n (0.6.1) journey (1.0.4) @@ -106,7 +105,7 @@ GEM rack (1.4.5) rack-cache (1.2) rack (>= 0.4) - rack-mini-profiler (0.1.25) + rack-mini-profiler (0.1.26) rack (>= 1.1.3) rack-ssl (1.3.3) rack @@ -144,7 +143,7 @@ GEM railties (~> 3.2.0) sass (>= 3.1.10) tilt (~> 1.3) - selenium-webdriver (2.31.0) + selenium-webdriver (2.32.0) childprocess (>= 0.2.5) multi_json (~> 1.0) rubyzip @@ -166,7 +165,7 @@ GEM libv8 (~> 3.11.8.12) ref thor (0.18.1) - tilt (1.3.6) + tilt (1.3.7) timecop (0.6.1) tolk (1.3.9) safe_yaml (~> 0.8) @@ -181,7 +180,7 @@ GEM uniform_notifier (1.2.0) websocket (1.0.7) will_paginate (3.0.4) - xpath (1.0.0) + xpath (2.0.0) nokogiri (~> 1.3) yard (0.8.5.2) diff --git a/features/support/tracks_cucumber_settings.rb b/features/support/tracks_cucumber_settings.rb index 7809cce1..6afdda01 100644 --- a/features/support/tracks_cucumber_settings.rb +++ b/features/support/tracks_cucumber_settings.rb @@ -8,6 +8,7 @@ require 'capybara/session' Capybara.default_wait_time = 5 Capybara.javascript_driver = ENV["JS_DRIVER"] ? ENV["JS_DRIVER"].to_sym : :selenium +Capybara.ignore_hidden_elements = false # make find(css) find hidden elements if Capybara.javascript_driver == :webkit # require 'capybara/webkit' diff --git a/features/toggle_containers.feature b/features/toggle_containers.feature index f221047b..3690cf16 100644 --- a/features/toggle_containers.feature +++ b/features/toggle_containers.feature @@ -38,7 +38,7 @@ Feature: Toggle the containers And I should not see the todo "test 2" And I should not see the todo "test 3" - @javascript @wip + @javascript Scenario: I can toggle a project container Given I have the following contexts | context | hide | @@ -87,7 +87,7 @@ Feature: Toggle the containers And I should not see the context container for "@boss" And I should not see the context container for "@ipad" - @javascript @wip + @javascript Scenario: I can hide all collapsed project containers Given I have the following contexts | context | hide |