]> source.dussan.org Git - redmine.git/commitdiff
prevent failure of test_create_issue_with_watchers at UI IssuesTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 May 2013 09:22:57 +0000 (09:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 May 2013 09:22:57 +0000 (09:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11824 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index cb40c66394a897dafb067f6ba72bcf491d29fbff..8d5f403dbbd16ca41d22e60cb6f7e72daeeaa893 100644 (file)
@@ -121,7 +121,9 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
       click_button 'Add'
     end
     assert page.has_css?('form#issue-form')
-    assert page.has_content?('Some Watcher')
+    within('p#watchers_form') do
+      assert page.has_content?('Some Watcher')
+    end
     assert_difference 'Issue.count' do
       find('input[name=commit]').click
     end