Use "login details" instead of "credentials"
As suggested by Pomerange, "credentials" also refers to academic qualifications, and so might be confusing.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
en:
|
en:
|
||||||
account:
|
account:
|
||||||
show:
|
show:
|
||||||
change_credentials_link: Change my credentials
|
change_credentials_link: Change my login details
|
||||||
erase_account_link: Erase my account
|
erase_account_link: Erase my account
|
||||||
finish_verification: Complete verification
|
finish_verification: Complete verification
|
||||||
notifications: Notifications
|
notifications: Notifications
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ describe "Account" do
|
|||||||
scenario "Edit email address" do
|
scenario "Edit email address" do
|
||||||
visit account_path
|
visit account_path
|
||||||
|
|
||||||
click_link "Change my credentials"
|
click_link "Change my login details"
|
||||||
fill_in "user_email", with: "new_user_email@example.com"
|
fill_in "user_email", with: "new_user_email@example.com"
|
||||||
fill_in "user_password", with: "new_password"
|
fill_in "user_password", with: "new_password"
|
||||||
fill_in "user_password_confirmation", with: "new_password"
|
fill_in "user_password_confirmation", with: "new_password"
|
||||||
@@ -80,7 +80,7 @@ describe "Account" do
|
|||||||
expect(page).to have_content "You have been signed in successfully."
|
expect(page).to have_content "You have been signed in successfully."
|
||||||
|
|
||||||
visit account_path
|
visit account_path
|
||||||
click_link "Change my credentials"
|
click_link "Change my login details"
|
||||||
expect(page).to have_selector("input[value='new_user_email@example.com']")
|
expect(page).to have_selector("input[value='new_user_email@example.com']")
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,8 +150,7 @@ describe "Account" do
|
|||||||
|
|
||||||
expect(page).to have_current_path(account_path, ignore_query: true)
|
expect(page).to have_current_path(account_path, ignore_query: true)
|
||||||
|
|
||||||
expect(page).to have_link("Change my credentials")
|
click_link "Change my login details"
|
||||||
click_link "Change my credentials"
|
|
||||||
click_button "Update"
|
click_button "Update"
|
||||||
|
|
||||||
expect(page).to have_content error_message
|
expect(page).to have_content error_message
|
||||||
|
|||||||
Reference in New Issue
Block a user