decidim-dev/lib/decidim/dev/test/rspec_support/helpers.rb in decidim-0.4.4 vs decidim-dev/lib/decidim/dev/test/rspec_support/helpers.rb in decidim-0.5.0
- old
+ new
@@ -20,16 +20,10 @@
find("ul.dropdown.menu").hover
yield
end
end
- def click_icon(name = nil)
- classes = ["icon"]
- classes << ["icon--#{name}"] if name
- find(".#{classes.join(".")}").click
- end
-
def stripped(text)
Nokogiri::HTML(text).text
end
def within_flash_messages
@@ -39,13 +33,9 @@
end
def expect_user_logged
expect(page).to have_css(".topbar__user__logged")
end
-end
-
-def stripped(text)
- Nokogiri::HTML(text).text
end
RSpec.configure do |config|
config.include Decidim::FeatureTestHelpers, type: :feature
end