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:
Javi Martín
2022-05-05 12:49:44 +02:00
parent 541c434e7d
commit ca4a0bd4b2
2 changed files with 4 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ describe "Account" do
scenario "Edit email address" do
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_password", 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."
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']")
end
@@ -150,8 +150,7 @@ describe "Account" do
expect(page).to have_current_path(account_path, ignore_query: true)
expect(page).to have_link("Change my credentials")
click_link "Change my credentials"
click_link "Change my login details"
click_button "Update"
expect(page).to have_content error_message