diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb index 5a9a3527f..f19e1e5bb 100644 --- a/features/step_definitions/aspects_steps.rb +++ b/features/step_definitions/aspects_steps.rb @@ -1,7 +1,7 @@ When /^I click on "([^"]*)" aspect edit icon$/ do |aspect_name| within(".all_aspects") do li = find('li', text: aspect_name) - page.execute_script("$('#aspects_list li:contains(\\'#{aspect_name}\\') .modify_aspect').css('display', 'block');") # TODO HACK please replace me by li.hover when capybara will be fixed + li.hover li.find('.modify_aspect').click end end diff --git a/features/step_definitions/conversations_steps.rb b/features/step_definitions/conversations_steps.rb index 723335d6e..a813f1f17 100644 --- a/features/step_definitions/conversations_steps.rb +++ b/features/step_definitions/conversations_steps.rb @@ -41,6 +41,7 @@ Then /^I should see "([^"]*)" as part of the participants popover$/ do |name| end Then /^I close the participants popover$/ do - find('.popover-title .close', visible: false).click + find('.popover').hover + find('.popover-title .close').click end diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 882092e4b..5b42b9263 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -114,7 +114,7 @@ And /^I want to mention (?:him|her) from the profile$/ do end And /^I hover over the "([^"]+)"$/ do |element| - page.execute_script("$(\"#{element}\").first().addClass('hover')") + find("#{element}", match: :first).hover end When /^I prepare the deletion of the first post$/ do