X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1becffcbf5a948aacca7289dcf24db3fc971ea9c..318064b2a7f4b39119dfab02c712832c0f8c5859:/test/controllers/profiles_controller_test.rb diff --git a/test/controllers/profiles_controller_test.rb b/test/controllers/profiles_controller_test.rb index 824ecb5e3..5b11127c7 100644 --- a/test/controllers/profiles_controller_test.rb +++ b/test/controllers/profiles_controller_test.rb @@ -26,7 +26,7 @@ class ProfilesControllerTest < ActionDispatch::IntegrationTest follow_redirect! assert_response :success assert_template :show - assert_select ".notice", /^Profile updated./ + assert_select ".alert-success", /^Profile updated./ assert_select "div", "new description" # Changing to an uploaded image should work @@ -37,7 +37,7 @@ class ProfilesControllerTest < ActionDispatch::IntegrationTest follow_redirect! assert_response :success assert_template :show - assert_select ".notice", /^Profile updated./ + assert_select ".alert-success", /^Profile updated./ get edit_profile_path assert_select "form > fieldset > div > div.col-sm-10 > div.form-check > input[name=avatar_action][checked][value=?]", "keep" @@ -48,7 +48,7 @@ class ProfilesControllerTest < ActionDispatch::IntegrationTest follow_redirect! assert_response :success assert_template :show - assert_select ".notice", /^Profile updated./ + assert_select ".alert-success", /^Profile updated./ get edit_profile_path assert_select "form > fieldset > div > div.col-sm-10 > div > div.form-check > input[name=avatar_action][checked][value=?]", "gravatar" @@ -59,7 +59,7 @@ class ProfilesControllerTest < ActionDispatch::IntegrationTest follow_redirect! assert_response :success assert_template :show - assert_select ".notice", /^Profile updated./ + assert_select ".alert-success", /^Profile updated./ get edit_profile_path assert_select "form > fieldset > div > div.col-sm-10 > div > input[name=avatar_action][checked]", false assert_select "form > fieldset > div > div.col-sm-10 > div > div.form-check > input[name=avatar_action][checked]", false