From d3faed74ebcd74c409cf84541cbc52134e349b13 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sun, 20 Nov 2016 23:36:26 +0100 Subject: [PATCH] Remove deprecated capybara 'parent' call --- features/step_definitions/aspects_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb index bcfa6b37c..8881cd946 100644 --- a/features/step_definitions/aspects_steps.rb +++ b/features/step_definitions/aspects_steps.rb @@ -21,7 +21,7 @@ module AspectCukeHelpers aspect = find(".aspect_membership_dropdown.open .dropdown-menu li", text: aspect_name) aspect_selected = aspect["class"].include? "selected" aspect.trigger "click" - aspect.parent.should have_no_css(".loading") + expect(find(".aspect_membership_dropdown .dropdown-menu", visible: false)).to have_no_css(".loading") # close dropdown page.should have_no_css('#profile.loading')