Add plugin CSS classes to plugin settings views (#33453).

Contributed by Alexander Meindl.


git-svn-id: http://svn.redmine.org/redmine/trunk@19813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-06-09 05:20:45 +00:00
parent a516b482ef
commit a00bbc3263
2 changed files with 5 additions and 3 deletions

View File

@@ -211,8 +211,10 @@ class SettingsControllerTest < Redmine::ControllerTest
get :plugin, :params => {:id => 'foo'}
assert_response :success
assert_select 'form[action="/settings/plugin/foo"]' do
assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
assert_select '#settings.plugin.plugin-foo' do
assert_select 'form[action="/settings/plugin/foo"]' do
assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
end
end
ensure
Redmine::Plugin.unregister(:foo)