mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Conflicts: app/controllers/enterprises_controller.rb app/views/spree/checkout/_distributor.html.haml db/schema.rb spec/lib/open_food_web/group_buy_report_spec.rb
52 lines
1018 B
Ruby
52 lines
1018 B
Ruby
require "spec_helper"
|
|
|
|
feature %q{
|
|
As an administrator
|
|
I want numbers, all the numbers!
|
|
} do
|
|
include AuthenticationWorkflow
|
|
include WebHelper
|
|
|
|
|
|
scenario "orders and distributors report" do
|
|
login_to_admin_section
|
|
click_link 'Reports'
|
|
click_link 'Orders And Distributors'
|
|
|
|
page.should have_content 'Order date'
|
|
end
|
|
|
|
scenario "group buys report" do
|
|
login_to_admin_section
|
|
click_link 'Reports'
|
|
click_link 'Group Buys'
|
|
|
|
page.should have_content 'Supplier'
|
|
end
|
|
|
|
scenario "bulk co-op report" do
|
|
login_to_admin_section
|
|
click_link 'Reports'
|
|
click_link 'Bulk Co-Op'
|
|
|
|
page.should have_content 'Supplier'
|
|
end
|
|
|
|
scenario "payments reports" do
|
|
login_to_admin_section
|
|
click_link 'Reports'
|
|
click_link 'Payment Reports'
|
|
|
|
page.should have_content 'Payment State'
|
|
end
|
|
|
|
scenario "order cycle reports" do
|
|
login_to_admin_section
|
|
click_link 'Reports'
|
|
click_link 'Order Cycle Reports'
|
|
|
|
page.should have_content 'Supplier'
|
|
end
|
|
|
|
end
|