summaryrefslogtreecommitdiffstats
path: root/test/functional/users_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-08-13 02:56:04 +0000
committerGo MAEDA <maeda@farend.jp>2021-08-13 02:56:04 +0000
commit39e212dd8fc4a2f893ddf29efaa66daa14aad323 (patch)
treeebb4273a80c955f20269986ca40760b21c182906 /test/functional/users_controller_test.rb
parente1e4736e973493ea075e049c7ef2d12edebe35bf (diff)
downloadredmine-39e212dd8fc4a2f893ddf29efaa66daa14aad323.tar.gz
redmine-39e212dd8fc4a2f893ddf29efaa66daa14aad323.zip
Password and Confirmation fields are marked as required when editing a user (#35731).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r--test/functional/users_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 4dae5138f..247d81120 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -280,6 +280,7 @@ class UsersControllerTest < Redmine::ControllerTest
get :new
assert_response :success
assert_select 'input[name=?]', 'user[login]'
+ assert_select 'label[for=?]>span.required', 'user_password', 1
end
def test_create
@@ -482,6 +483,7 @@ class UsersControllerTest < Redmine::ControllerTest
assert_response :success
assert_select 'h2>a+img.gravatar'
assert_select 'input[name=?][value=?]', 'user[login]', 'jsmith'
+ assert_select 'label[for=?]>span.required', 'user_password', 0
end
def test_edit_registered_user