prevent UI test failure randomly

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-06-14 05:14:29 +00:00
parent eeb290d650
commit 6ccb68bd46
1 changed files with 3 additions and 2 deletions

View File

@ -121,8 +121,9 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
click_button 'Add'
end
assert page.has_css?('form#issue-form')
within('p#watchers_form') do
assert page.has_content?('Some Watcher')
assert page.has_css?('p#watchers_form')
within('span#watchers_inputs') do
assert page.has_content?('Some Watcher'), "No watcher content"
end
assert_difference 'Issue.count' do
find('input[name=commit]').click