]> source.dussan.org Git - redmine.git/commitdiff
Fix that WorkflowsControllerTest fails if table cells have more than one CSS class...
authorGo MAEDA <maeda@farend.jp>
Sun, 17 Jan 2021 01:48:13 +0000 (01:48 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 17 Jan 2021 01:48:13 +0000 (01:48 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@20716 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/workflows_controller_test.rb

index cc535c42d2b0a3628052a16bdeb97809b196ad49..2e183797889da404e55217d8a0590715c2652c8e 100644 (file)
@@ -125,7 +125,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest
     assert_select 'table.workflows.transitions-always tbody tr:nth-child(2)' do
       assert_select 'td.name', :text => 'New'
       # assert that the td is enabled
-      assert_select "td[title='New » New'][class=?]", 'enabled'
+      assert_select "td.enabled[title='New » New']"
       # assert that the checkbox is disabled and checked
       assert_select "input[name='transitions[1][1][always]'][checked=?][disabled=?]", 'checked', 'disabled', 1
     end