summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-06-14 14:06:04 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-06-14 14:06:04 +0000
commit56f9354998b6798aeddcd6a07d4d59ec7d928e30 (patch)
tree35dcd45dd7dc9a738145d50387f8dc45b30c68c3 /test
parent484a3ffc8aa18db1104e3aab2a71033ad2de174f (diff)
downloadredmine-56f9354998b6798aeddcd6a07d4d59ec7d928e30.tar.gz
redmine-56f9354998b6798aeddcd6a07d4d59ec7d928e30.zip
prevent UI test failure randomly
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11978 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/ui/issues_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb
index 750d8763d..c06422781 100644
--- a/test/ui/issues_test.rb
+++ b/test/ui/issues_test.rb
@@ -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