From 0b4fcf8a14bf7ad564bca7047153daec3db83c50 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Fri, 20 Jul 2018 12:56:33 +0800 Subject: [PATCH] Change enterprise "Manage" button to "Settings" --- config/locales/en.yml | 2 +- spec/features/admin/enterprise_fees_spec.rb | 12 ++++++------ spec/features/admin/enterprises_spec.rb | 10 +++++----- spec/features/admin/payment_method_spec.rb | 6 +++--- spec/features/admin/shipping_methods_spec.rb | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 67a53ef640..c000aa3453 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -788,7 +788,7 @@ en: no_enterprises_found: No enterprises found. search_placeholder: Search By Name manage: Manage - manage_link: Manage + manage_link: Settings new_form: owner: Owner owner_tip: The primary user responsible for this enterprise. diff --git a/spec/features/admin/enterprise_fees_spec.rb b/spec/features/admin/enterprise_fees_spec.rb index 50d8412116..52b532e70c 100644 --- a/spec/features/admin/enterprise_fees_spec.rb +++ b/spec/features/admin/enterprise_fees_spec.rb @@ -145,7 +145,7 @@ feature %q{ ef2 click_link 'Enterprises' - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") { click_link 'Enterprise Fees' } click_link "Create One Now" @@ -169,16 +169,16 @@ feature %q{ ef2 click_link 'Enterprises' - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") { click_link 'Enterprise Fees' } - click_link "Manage Enterprise Fees" + click_link "Settings Enterprise Fees" page.should have_field 'enterprise_fee_set_collection_attributes_0_name', with: 'One' page.should_not have_field 'enterprise_fee_set_collection_attributes_1_name', with: 'Two' click_link 'Enterprises' - within("#e_#{distributor2.id}") { click_link 'Manage' } + within("#e_#{distributor2.id}") { click_link 'Settings' } within(".side_menu") { click_link 'Enterprise Fees' } - click_link "Manage Enterprise Fees" + click_link "Settings Enterprise Fees" page.should_not have_field 'enterprise_fee_set_collection_attributes_0_name', with: 'One' page.should have_field 'enterprise_fee_set_collection_attributes_0_name', with: 'Two' end @@ -189,7 +189,7 @@ feature %q{ distributor3 click_link 'Enterprises' - within("#e_#{distributor2.id}") { click_link 'Manage' } + within("#e_#{distributor2.id}") { click_link 'Settings' } within(".side_menu") { click_link 'Enterprise Fees' } click_link "Manage Enterprise Fees" page.should have_select('enterprise_fee_set_collection_attributes_1_enterprise_id', diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index c7df54a6ac..c3d559b57f 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -376,7 +376,7 @@ feature %q{ scenario "editing enterprises I manage" do visit admin_enterprises_path - within("tbody#e_#{distributor1.id}") { click_link 'Manage' } + within("tbody#e_#{distributor1.id}") { click_link 'Settings' } fill_in 'enterprise_name', :with => 'Eaterprises' @@ -392,7 +392,7 @@ feature %q{ describe "enterprises I have edit permission for, but do not manage" do it "allows me to edit them" do visit admin_enterprises_path - within("tbody#e_#{distributor3.id}") { click_link 'Manage' } + within("tbody#e_#{distributor3.id}") { click_link 'Settings' } fill_in 'enterprise_name', :with => 'Eaterprises' @@ -407,7 +407,7 @@ feature %q{ it "does not show links to manage shipping methods, payment methods or enterprise fees on the edit page" do visit admin_enterprises_path - within("tbody#e_#{distributor3.id}") { click_link 'Manage' } + within("tbody#e_#{distributor3.id}") { click_link 'Settings' } within(".side_menu") do page.should_not have_link 'Shipping Methods' @@ -419,7 +419,7 @@ feature %q{ scenario "editing images for an enterprise" do visit admin_enterprises_path - within("tbody#e_#{distributor1.id}") { click_link 'Manage' } + within("tbody#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Images" @@ -432,7 +432,7 @@ feature %q{ scenario "managing producer properties" do create(:property, name: "Certified Organic") visit admin_enterprises_path - within("#e_#{supplier1.id}") { click_link 'Manage' } + within("#e_#{supplier1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Properties" end diff --git a/spec/features/admin/payment_method_spec.rb b/spec/features/admin/payment_method_spec.rb index fd101d5045..9ce7f76a83 100644 --- a/spec/features/admin/payment_method_spec.rb +++ b/spec/features/admin/payment_method_spec.rb @@ -132,7 +132,7 @@ feature %q{ it "I can get to the new enterprise page" do visit admin_enterprises_path - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Payment Methods" end @@ -182,7 +182,7 @@ feature %q{ pm2 visit admin_enterprises_path - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Payment Methods" end @@ -191,7 +191,7 @@ feature %q{ page.should have_content pm2.name click_link 'Enterprises' - within("#e_#{distributor2.id}") { click_link 'Manage' } + within("#e_#{distributor2.id}") { click_link 'Settings' } within(".side_menu") do click_link "Payment Methods" end diff --git a/spec/features/admin/shipping_methods_spec.rb b/spec/features/admin/shipping_methods_spec.rb index 2a83f2531f..4a06ea139a 100644 --- a/spec/features/admin/shipping_methods_spec.rb +++ b/spec/features/admin/shipping_methods_spec.rb @@ -78,7 +78,7 @@ feature 'shipping methods' do it "creating a shipping method" do visit admin_enterprises_path - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Shipping Methods" end @@ -131,7 +131,7 @@ feature 'shipping methods' do sm2 visit admin_enterprises_path - within("#e_#{distributor1.id}") { click_link 'Manage' } + within("#e_#{distributor1.id}") { click_link 'Settings' } within(".side_menu") do click_link "Shipping Methods" end @@ -139,7 +139,7 @@ feature 'shipping methods' do page.should have_content sm2.name click_link 'Enterprises' - within("#e_#{distributor2.id}") { click_link 'Manage' } + within("#e_#{distributor2.id}") { click_link 'Settings' } within(".side_menu") do click_link "Shipping Methods" end