Skip to content

Commit

Permalink
Fix the spec for updating password
Browse files Browse the repository at this point in the history
The password on the form is cleared on purpose.
  • Loading branch information
ahukkanen committed Feb 22, 2024
1 parent 3e3e107 commit 6d04fa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/system/account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
fill_in "Current password", with: "wrong password12345"
find("*[type=submit]").click
end
expect(page).to have_field("user[password]", with: "decidim1234567890", type: "password")
expect(page).to have_content("There was a problem updating your account.")
expect(page).to have_field("user[password]", with: "", type: "password")
expect(page).to have_content("is invalid")
end

Expand Down

0 comments on commit 6d04fa5

Please sign in to comment.