summaryrefslogtreecommitdiffstats
path: root/test/ui
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-06-14 08:30:53 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-06-14 08:30:53 +0000
commitb29288c50a85cb1910d67717fc349878a7b27541 (patch)
treedd3ee56e390d346e5fe100e14b61af4f74bf8296 /test/ui
parent784440691c4fb09378d3b01001e3b1f8779142d8 (diff)
downloadredmine-b29288c50a85cb1910d67717fc349878a7b27541.tar.gz
redmine-b29288c50a85cb1910d67717fc349878a7b27541.zip
prevent UI test failure randomly
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11973 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-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 d1e92dc9b..750d8763d 100644
--- a/test/ui/issues_test.rb
+++ b/test/ui/issues_test.rb
@@ -102,8 +102,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
end
def test_create_issue_with_watchers
- User.generate!(:firstname => 'Some', :lastname => 'Watcher')
-
+ user = User.generate!(:firstname => 'Some', :lastname => 'Watcher')
+ assert_equal 'Some Watcher', user.name
log_user('jsmith', 'jsmith')
visit '/projects/ecookbook/issues/new'
fill_in 'Subject', :with => 'Issue with watchers'
@@ -123,7 +123,9 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
assert page.has_css?('form#issue-form')
assert page.has_css?('p#watchers_form')
within('span#watchers_inputs') do
- assert has_content?('Some Watcher'), "No watcher content"
+ within("label#issue_watcher_user_ids_#{user.id}") do
+ assert has_content?('Some Watcher'), "No watcher content"
+ end
end
assert_difference 'Issue.count' do
find('input[name=commit]').click