]> source.dussan.org Git - redmine.git/commitdiff
prevent UI test failure randomly
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 14 Jun 2013 14:06:04 +0000 (14:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 14 Jun 2013 14:06:04 +0000 (14:06 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11978 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 750d8763dd7ef36a8005ba5f6592778391ae6508..c064227817fcb733c4d28aae68d0d1d809e49b94 100644 (file)
@@ -122,9 +122,11 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
     end
     assert page.has_css?('form#issue-form')
     assert page.has_css?('p#watchers_form')
-    within('span#watchers_inputs') do
-      within("label#issue_watcher_user_ids_#{user.id}") do
-        assert has_content?('Some Watcher'), "No watcher content"
+    using_wait_time(30) do
+      within('span#watchers_inputs') do
+        within("label#issue_watcher_user_ids_#{user.id}") do
+          assert has_content?('Some Watcher'), "No watcher content"
+        end
       end
     end
     assert_difference 'Issue.count' do