diff options
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index 160adf4f2..16b1392c0 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -272,7 +272,9 @@ class MyControllerTest < Redmine::ControllerTest assert_match 'v[updated_by][]=me', report_url assert_select 'table.issues tbody tr', 2 - assert_select 'table.issues tbody tr[id=?]', 'issue-1', 1, :title => 'Cannot print recipes' + assert_select 'table.issues tbody tr[id=?]', 'issue-1' do + assert_select 'td.subject a', :text => 'Cannot print recipes', :count => 1 + end assert_select 'table.issues tbody tr[id=?]', 'issue-14', 0 end end @@ -311,7 +313,9 @@ class MyControllerTest < Redmine::ControllerTest assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url assert_select 'tr', 1 - assert_select 'tr[id=?]', 'issue-1', 1, :title => 'Cannot print recipes' + assert_select 'tr[id=?]', 'issue-1' do + assert_select 'td.subject a', :text => 'Cannot print recipes', :count => 1 + end assert_select 'tr[id=?]', 'issue-4', 0 end end @@ -339,7 +343,9 @@ class MyControllerTest < Redmine::ControllerTest assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url assert_select 'table.issues tbody tr', 10 - assert_select 'table.issues tbody tr[id=?]', 'issue-1', 1, :title => 'Cannot print recipes' + assert_select 'table.issues tbody tr[id=?]', 'issue-1' do + assert_select 'td.subject a', :text => 'Cannot print recipes', :count => 1 + end assert_select 'table.issues tbody tr[id=?]', 'issue-4', 0 end end @@ -371,7 +377,9 @@ class MyControllerTest < Redmine::ControllerTest assert_match 'v%5Bproject.status%5D%5B%5D=1', report_url assert_select 'tr', 1 - assert_select 'tr[id=?]', 'issue-1', 1, :title => 'Cannot print recipes' + assert_select 'tr[id=?]', 'issue-1' do + assert_select 'td.subject a', :text => 'Cannot print recipes', :count => 1 + end assert_select 'tr[id=?]', 'issue-4', 0 end end |