summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-04-11 09:00:34 +0000
committerGo MAEDA <maeda@farend.jp>2020-04-11 09:00:34 +0000
commita14697df687337f8df8316fc44e5f850ff425379 (patch)
tree5198cab49589df403636bca7f2e3b5fbfe307e68 /test
parent7a69848d9138257ccadde6dcf84e96ee462dfebe (diff)
downloadredmine-a14697df687337f8df8316fc44e5f850ff425379.tar.gz
redmine-a14697df687337f8df8316fc44e5f850ff425379.zip
Unify CSS classes for custom fields in issue#show, issue#edit and issue#bulk_edit (#32471).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19690 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/projects_controller_test.rb2
-rw-r--r--test/functional/users_controller_test.rb2
-rw-r--r--test/helpers/custom_fields_helper_test.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 94b861811..fb186d662 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -677,7 +677,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
ProjectCustomField.find_by_name('Development status').update_attribute :visible, true
get(:show, :params => {:id => 'ecookbook'})
assert_response :success
- assert_select 'li[class=?]', 'cf_3', :text => /Development status/
+ assert_select 'li.list_cf.cf_3', :text => /Development status/
end
def test_show_should_not_display_hidden_custom_fields
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 40105bb2e..7be370de2 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -141,7 +141,7 @@ class UsersControllerTest < Redmine::ControllerTest
get :show, :params => {:id => 2}
assert_response :success
- assert_select 'li[class=?]', 'cf_4', :text => /Phone number/
+ assert_select 'li.cf_4.string_cf', :text => /Phone number/
end
def test_show_should_not_display_hidden_custom_fields
diff --git a/test/helpers/custom_fields_helper_test.rb b/test/helpers/custom_fields_helper_test.rb
index 676b34c15..501f31f12 100644
--- a/test/helpers/custom_fields_helper_test.rb
+++ b/test/helpers/custom_fields_helper_test.rb
@@ -93,7 +93,7 @@ class CustomFieldsHelperTest < Redmine::HelperTest
field = IssueCustomField.create!(:name => 'Long text', :field_format => 'text', :text_formatting => 'full')
value = CustomValue.new(:value => 'bar', :custom_field => field)
- assert_select_in custom_field_tag('object', value), 'textarea[class=?]', 'text_cf wiki-edit'
+ assert_select_in custom_field_tag('object', value), "textarea.text_cf.wiki-edit.cf_#{field.id}"
end
def test_select_type_radio_buttons