mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Rename edit link in admin enterprise index
Change "Edit Profile" link to "Settings".
This commit is contained in:
committed by
Maikel Linke
parent
295604b689
commit
17978f58c7
@@ -748,7 +748,7 @@ en:
|
||||
email_confirmed: "Email confirmed"
|
||||
email_not_confirmed: "Email not confirmed"
|
||||
actions:
|
||||
edit_profile: Edit Profile
|
||||
edit_profile: Settings
|
||||
properties: Properties
|
||||
payment_methods: Payment Methods
|
||||
payment_methods_tip: This enterprise has no payment methods
|
||||
|
||||
@@ -15,7 +15,7 @@ feature 'Enterprises Index' do
|
||||
within("tr.enterprise-#{s.id}") do
|
||||
expect(page).to have_content s.name
|
||||
expect(page).to have_select "enterprise_set_collection_attributes_1_sells"
|
||||
expect(page).to have_content "Edit Profile"
|
||||
expect(page).to have_content "Settings"
|
||||
expect(page).to have_content "Delete"
|
||||
expect(page).to_not have_content "Payment Methods"
|
||||
expect(page).to_not have_content "Shipping Methods"
|
||||
@@ -25,7 +25,7 @@ feature 'Enterprises Index' do
|
||||
within("tr.enterprise-#{d.id}") do
|
||||
expect(page).to have_content d.name
|
||||
expect(page).to have_select "enterprise_set_collection_attributes_0_sells"
|
||||
expect(page).to have_content "Edit Profile"
|
||||
expect(page).to have_content "Settings"
|
||||
expect(page).to have_content "Delete"
|
||||
expect(page).to have_content "Payment Methods"
|
||||
expect(page).to have_content "Shipping Methods"
|
||||
|
||||
@@ -77,7 +77,7 @@ feature %q{
|
||||
|
||||
visit '/admin/enterprises'
|
||||
within "tr.enterprise-#{@enterprise.id}" do
|
||||
first("a", text: 'Edit Profile').trigger 'click'
|
||||
first("a", text: 'Settings').trigger 'click'
|
||||
end
|
||||
|
||||
fill_in 'enterprise_name', :with => 'Eaterprises'
|
||||
|
||||
Reference in New Issue
Block a user