Created
April 15, 2013 05:25
-
-
Save radar/5385898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nesting of 20 is too deep (JSON::NestingError) | |
./features/support/interactors.rb:4:in `hover_over' | |
./features/step_definitions/shortlist_new_steps.rb:11 | |
./features/step_definitions/shortlist_new_steps.rb:10:in `/^I click the product shortlist link in the main navigation$/' | |
features/public/shortlists/view_product_shortlist.feature:10:in `And I click the product shortlist link in the main navigation' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InteractionHelpers | |
def hover_over(text) | |
page.evaluate_script('$("*:contains(\"'+text+'\")").mouseover()'); | |
end | |
end | |
World(InteractionHelpers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I have no (.+) on my shortlist$/ do |type| | |
# This deliberately does nothing | |
end | |
When /^I visit the homepage$/ do | |
visit root_path | |
end | |
When /^I click the product shortlist link in the main navigation$/ do | |
within 'nav.secondary' do | |
hover_over 'Shortlists' | |
click_link 'Product Shortlist' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment