Reword comments/descriptions

This commit is contained in:
2024-01-05 21:56:57 +01:00
parent 98c8fb9346
commit 5c70736a91
2 changed files with 11 additions and 8 deletions

View File

@@ -110,8 +110,8 @@ class UsersTest < ApplicationSystemTestCase
click_on t("layouts.application.users")
all(:link_or_button, text: t("users.index.disguise")).sample.click
assert_current_path edit_user_registration_path
# TODO: test for profile app-menu link after root changed to different path
# then profile
# TODO: test for "Profile" link button after root_url changed to different
# path then profile in routes.rb
click_on t("layouts.application.revert")
assert_current_path users_path
@@ -134,10 +134,11 @@ class UsersTest < ApplicationSystemTestCase
assert_title "Bad request received (400)"
end
test "destroy profile" do
test "delete profile" do
user = users.select(&:confirmed?).sample
sign_in user: user
# TODO: remove condition after root changed to different path than profile
# TODO: remove condition after root_url changed to different path than
# profile in routes.rb
unless has_current_path?(edit_user_registration_path)
first(:link_or_button, user.email).click
end