]> source.dussan.org Git - redmine.git/commitdiff
more strictly start date assertion at CalendarsControllerTest#test_show
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 Nov 2020 14:44:37 +0000 (14:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 Nov 2020 14:44:37 +0000 (14:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20254 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/calendars_controller_test.rb

index 7a1579d611e13e957210165083466a06e3ef6c4a..d83755c7160a022cf6b9a5f61c2102f25008e41c 100644 (file)
@@ -68,10 +68,9 @@ class CalendarsControllerTest < Redmine::ControllerTest
     assert_select 'table.cal' do
       assert_select 'tr' do
         assert_select 'td' do
-          assert_select 'p.day-num', :text => date.day.to_s
           assert_select(
-            'div.issue.hascontextmenu.tooltip.starting',
-            :text => /Add ingredients categories/
+            'p.day-num ~ div.issue.hascontextmenu.tooltip.starting',
+            :text => /#{date.day}.*Add ingredients categories/
           ) do
             assert_select 'a.issue[href=?]', '/issues/2', :text => 'Feature request #2'
             assert_select 'span.tip' do