Browse Source

User spec

pull/158/head
baarkerlounger 4 years ago
parent
commit
73a24d4339
  1. 2
      spec/features/user_spec.rb

2
spec/features/user_spec.rb

@ -146,8 +146,8 @@ RSpec.describe "User Features" do
visit("/users/#{user.id}")
find('[data-qa="change-password"]').click
expect(page).to have_content("Change your password")
fill_in("user[current_password]", with: "pAssword1")
fill_in("user[password]", with: "Password123!")
fill_in("user[password_confirmation]", with: "Password123!")
click_button("Update")
expect(page).to have_current_path("/users/#{user.id}")
end

Loading…
Cancel
Save