From a00bbc3263da1fa022fc3899b32d48d90e491bbe Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 9 Jun 2020 05:20:45 +0000 Subject: [PATCH] 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 --- app/views/settings/plugin.html.erb | 2 +- test/functional/settings_controller_test.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/settings/plugin.html.erb b/app/views/settings/plugin.html.erb index 0d5b837d3..d8712a042 100644 --- a/app/views/settings/plugin.html.erb +++ b/app/views/settings/plugin.html.erb @@ -1,6 +1,6 @@ <%= title [l(:label_plugins), {:controller => 'admin', :action => 'plugins'}], @plugin.name %> -
+
<%= form_tag({:action => 'plugin'}) do %>
<%= render :partial => @partial, :locals => {:settings => @settings}%> diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index 12a6cef38..b9b4c971f 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -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) -- 2.39.5