diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/account_controller_test.rb | 4 | ||||
-rw-r--r-- | test/functional/my_controller_test.rb | 6 | ||||
-rw-r--r-- | test/integration/account_test.rb | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 083b2bafd..4954f3292 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -30,8 +30,8 @@ class AccountControllerTest < Redmine::ControllerTest get :login assert_response :success - assert_select 'input[name=username]' - assert_select 'input[name=password]' + assert_select 'input[name=username][autocomplete=username]' + assert_select 'input[name=password][autocomplete=current-password]' end def test_get_login_while_logged_in_should_redirect_to_back_url_if_present diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index b485b5c9a..b311854f1 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -605,9 +605,9 @@ class MyControllerTest < Redmine::ControllerTest def test_change_password get :password assert_response :success - assert_select 'input[type=password][name=password]' - assert_select 'input[type=password][name=new_password]' - assert_select 'input[type=password][name=new_password_confirmation]' + assert_select 'input[type=password][name=password][autocomplete=current-password]' + assert_select 'input[type=password][name=new_password][autocomplete=new-password]' + assert_select 'input[type=password][name=new_password_confirmation][autocomplete=new-password]' end def test_update_password diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index 1953588b6..e40584152 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -136,8 +136,8 @@ class AccountTest < Redmine::IntegrationTest follow_redirect! assert_response :success assert_select 'input[type=hidden][name=token][value=?]', token.value - assert_select 'input[name=new_password]' - assert_select 'input[name=new_password_confirmation]' + assert_select 'input[name=new_password][autocomplete=new-password]' + assert_select 'input[name=new_password_confirmation][autocomplete=new-password]' post( "/account/lost_password", |