mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Change enterprise "Manage" button to "Settings"
This commit is contained in:
committed by
Maikel Linke
parent
b91019ad64
commit
0b4fcf8a14
@@ -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.
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user