diaspora/features/step_definitions/hovercard_steps.rb
Florian Staudacher 36e92b322f fix hovercard aspect selectio z-index by moving it out of the stream element
- create handlebars template for hovercards
- fix notifications-dropdown (workaround) to remain open when aspect
  selector is clicked
2014-09-01 19:39:23 +02:00

21 lines
546 B
Ruby

When(/^I activate the first hovercard$/) do
first('.hovercardable').hover
end
Then(/^I should see a hovercard$/) do
page.should have_css('#hovercard', visible: true)
end
When(/^I deactivate the first hovercard$/) do
page.execute_script("$('.hovercardable').first().trigger('mouseleave');")
end
Then(/^I should not see a hovercard$/) do
page.should_not have_css('#hovercard', visible: true)
end
When (/^I hover "([^"]*)" within "([^"]*)"$/) do |name, selector|
with_scope(selector) do
find(".author", text: name).hover
end
end