Files
openfoodnetwork/spec/components/vertical_ellipsis_menu_component_spec.rb
David Cook 968a224da6 Move vertical ellipsis menu to a ViewComponent
Javascript hasn't been moved in, as we don't seem to be set up for that yet.

We could make it smarter, and pass in an array of parameters to build the links (as in _order_links.html.haml). But why make it complicated if we don't need to?
2023-11-24 16:23:18 +11:00

13 lines
333 B
Ruby

# frozen_string_literal: true
require "spec_helper"
describe VerticalEllipsisMenuComponent, type: :component do
it "displays the included links" do
content = "<a href>Edit</a>"
render_inline(VerticalEllipsisMenuComponent.new.with_content(content.html_safe))
expect(page).to have_selector "a", text: "Edit"
end
end