Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklynhma committed Dec 14, 2024
1 parent 46220b3 commit c946371
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/profiles/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<p class='form__field__instructions'>
<%= t('.enter_password') %>
</p>
<%= form.password_field :password, autocomplete: 'current-password', class: 'form__input' %>
<%= form.password_field :password, autocomplete: 'current-password', class: 'form__input', required: true %>
</div>


Expand Down
3 changes: 1 addition & 2 deletions test/integration/profile_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ def sign_out

click_link "Sign out"
visit profile_path("nick1")

assert page.has_link?("https://nickisawesome.com")
assert page.has_link?("https://nickisawe...")
end

test "deleting profile" do
Expand Down
3 changes: 1 addition & 2 deletions test/system/authorizing_profile_update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ def sign_in
assert_equal twitter_username, page.find_by_id("user_twitter_username").value

click_button "Update"

# Verify that the newly added Twitter username is still on the form so that the user does not need to re-enter it
assert_equal twitter_username, page.find_by_id("user_twitter_username").value

fill_in "Password", with: PasswordHelpers::SECURE_TEST_PASSWORD
fill_in "Password", with: @user.password
click_button "Update"

assert page.has_content? "Your profile was updated."
Expand Down

0 comments on commit c946371

Please sign in to comment.