From 3ae2d2e43c905d17326ab47e839b5ebb05f7a260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Wed, 31 Jul 2013 17:00:13 +0200 Subject: [PATCH] stabilize features/signs_up.feature --- features/step_definitions/custom_web_steps.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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