Adding BMC link to configurations menu

This commit is contained in:
Rob Harrington
2015-10-15 15:13:17 +11:00
parent a40a03905f
commit da325780b1
2 changed files with 13 additions and 12 deletions

View File

@@ -0,0 +1,4 @@
// insert_bottom "[data-hook='admin_configurations_sidebar_menu']"
%li
= link_to 'Business Model', main_app.edit_admin_business_model_configuration_path

View File

@@ -20,18 +20,15 @@ feature 'Business Model Configuration' do
end
context "as an admin user", js: true do
# it "loads the page" do
# visit spree.admin_path
# click_link "Configuration"
# click_link "Accounts & Billing"
#
# expect(page).to have_select2 "settings_accounts_distributor_id"
# select2_select accounts_distributor.name, from: "settings_accounts_distributor_id"
# expect(page).to have_select "settings_default_accounts_payment_method_id"
# expect(page).to have_select "settings_default_accounts_shipping_method_id"
# expect(page).to have_link "Update User Invoices", href: start_job_admin_accounts_and_billing_settings_path(job: { name: 'update_account_invoices'})
# expect(page).to have_link "Finalise User Invoices", href: start_job_admin_accounts_and_billing_settings_path(job: { name: 'finalize_account_invoices'})
# end
it "loads the page" do
visit spree.admin_path
click_link "Configuration"
click_link "Business Model"
expect(page).to have_field "settings_account_invoices_monthly_fixed", with: 5.0
expect(page).to have_field "settings_account_invoices_monthly_rate", with: 0.02
expect(page).to have_field "settings_account_invoices_monthly_cap", with: 50.0
end
it "attributes can be changed", js: true do
visit edit_admin_business_model_configuration_path