diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 6 | ||||
-rw-r--r-- | test/functional/issues_custom_fields_visibility_test.rb | 4 | ||||
-rw-r--r-- | test/integration/issues_test.rb | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 32776d419..b52648fcf 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1382,7 +1382,7 @@ class IssuesControllerTest < ActionController::TestCase get :show, :id => 1 assert_response :success - assert_select 'table.attributes .category' + assert_select '.attributes .category' end def test_show_should_not_display_category_field_if_no_categories_are_defined @@ -1482,7 +1482,7 @@ class IssuesControllerTest < ActionController::TestCase get :show, :id => 1 assert_response :success - assert_select 'td', :text => 'MySQL, Oracle' + assert_select ".cf_1 .value", :text => 'MySQL, Oracle' end def test_show_with_multi_user_custom_field @@ -1495,7 +1495,7 @@ class IssuesControllerTest < ActionController::TestCase get :show, :id => 1 assert_response :success - assert_select "td.cf_#{field.id}", :text => 'Dave Lopper, John Smith' do + assert_select ".cf_#{field.id} .value", :text => 'Dave Lopper, John Smith' do assert_select 'a', :text => 'Dave Lopper' assert_select 'a', :text => 'John Smith' end diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb index e23cd4fc2..58d03fd76 100644 --- a/test/functional/issues_custom_fields_visibility_test.rb +++ b/test/functional/issues_custom_fields_visibility_test.rb @@ -68,9 +68,9 @@ class IssuesCustomFieldsVisibilityTest < ActionController::TestCase get :show, :id => @issue.id @fields.each_with_index do |field, i| if fields.include?(field) - assert_select 'td', {:text => "Value#{i}", :count => 1}, "User #{user.id} was not able to view #{field.name}" + assert_select '.value', {:text => "Value#{i}", :count => 1}, "User #{user.id} was not able to view #{field.name}" else - assert_select 'td', {:text => "Value#{i}", :count => 0}, "User #{user.id} was able to view #{field.name}" + assert_select '.value', {:text => "Value#{i}", :count => 0}, "User #{user.id} was able to view #{field.name}" end end end diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb index e8387535e..0df8c8ac6 100644 --- a/test/integration/issues_test.rb +++ b/test/integration/issues_test.rb @@ -171,7 +171,10 @@ class IssuesTest < Redmine::IntegrationTest # Issue view follow_redirect! - assert_select 'th:contains("Tester:") + td', :text => tester.name + assert_select ".cf_#{@field.id}" do + assert_select '.label', :text => 'Tester:' + assert_select '.value', :text => tester.name + end assert_select 'select[name=?]', "issue[custom_field_values][#{@field.id}]" do assert_select 'option', users.size + 1 # +1 for blank value assert_select 'option[value=?][selected=selected]', tester.id.to_s, :text => tester.name |