mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
20 lines
493 B
Ruby
20 lines
493 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'Groups', js: true do
|
|
include AuthenticationWorkflow
|
|
include UIComponentHelper
|
|
|
|
let(:enterprise) { create(:distributor_enterprise) }
|
|
let!(:group) { create(:enterprise_group, enterprises: [enterprise], on_front_page: true) }
|
|
|
|
it "renders groups" do
|
|
visit groups_path
|
|
page.should have_content group.name
|
|
end
|
|
|
|
it "searches by URL" do
|
|
visit groups_path(anchor: "/?query=xyzzy")
|
|
expect(page).to have_content "No groups found"
|
|
end
|
|
end
|