mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
23 lines
603 B
Ruby
23 lines
603 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 "renders enterprise modals for groups" do
|
|
visit groups_path
|
|
page.should have_content enterprise.name
|
|
open_enterprise_modal enterprise
|
|
modal_should_be_open_for enterprise
|
|
page.should have_content "Herndon, Vic"
|
|
end
|
|
end
|