Rename edit link in admin enterprise index

Change "Edit Profile" link to "Settings".
This commit is contained in:
Kristina Lim
2018-08-03 19:17:59 +08:00
committed by Maikel Linke
parent 295604b689
commit 17978f58c7
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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'