mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Revert "Replace "execute_script" for triggering hovercards"
This reverts commit e7dc4eca9e.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
When(/^I activate the first hovercard$/) do
|
||||
first(".hovercardable").hover
|
||||
page.execute_script("$('.hovercardable').first().trigger('mouseenter');")
|
||||
end
|
||||
|
||||
Then(/^I should see a hovercard$/) do
|
||||
@@ -14,7 +14,7 @@ Then(/^I should see "([^"]*)" hashtag in the hovercard$/) do |tag|
|
||||
end
|
||||
|
||||
When(/^I deactivate the first hovercard$/) do
|
||||
find("input#q").click # Click something else instead to deactive it
|
||||
page.execute_script("$('.hovercardable').first().trigger('mouseleave');")
|
||||
end
|
||||
|
||||
Then(/^I should not see a hovercard$/) do
|
||||
|
||||
Reference in New Issue
Block a user