From 3a27d66ee83bb480c495c33159247e93bc37afc0 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sat, 27 Aug 2011 23:20:57 -0700 Subject: [PATCH] fix hover to add hover class to element (ugly); fixes one cucumber test --- features/step_definitions/custom_web_steps.rb | 2 +- public/stylesheets/sass/application.sass | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 594ffc2f6..01a7965a0 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -54,7 +54,7 @@ When /^I append "([^"]*)" to the publisher$/ do |stuff| end And /^I hover over the "([^"]+)"$/ do |element| - page.execute_script("$(\"#{element}\").first().mouseover()") + page.execute_script("$(\"#{element}\").first().addClass('hover')") end When /^I click to delete the first post$/ do diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index e0f276da8..331ffe29b 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -2938,7 +2938,8 @@ ul.left_nav a.tag_selector :width 140px - li:hover + li:hover, + li.hover .edit, .unfollow_icon :display inline-block