diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index e725a3594..a2fc0d0fa 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -265,7 +265,8 @@ And "I wait for the popovers to appear" do end And /^I click close on all the popovers$/ do - all(".popover .close", visible: false).each(&:click) + page.execute_script("$('.popover .close').click();") + page.should_not have_selector(".popover .close") end Then /^I should see first post deletion link$/ do