add more asserting to test_create_issue_with_watchers of ui issues_test

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11804 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-05-09 11:34:25 +00:00
parent 1e7c26d9a5
commit 9f41c7283c
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
# Add a project member as watcher # Add a project member as watcher
check 'Dave Lopper' check 'Dave Lopper'
# Search for another user # Search for another user
assert page.has_no_css?('form#new-watcher-form')
assert page.has_no_content?('Some Watcher')
click_link 'Search for watchers to add' click_link 'Search for watchers to add'
within('form#new-watcher-form') do within('form#new-watcher-form') do
assert page.has_content?('Some One') assert page.has_content?('Some One')
@ -118,6 +120,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
check 'Some Watcher' check 'Some Watcher'
click_button 'Add' click_button 'Add'
end end
assert page.has_content?('Some Watcher')
assert_difference 'Issue.count' do assert_difference 'Issue.count' do
find('input[name=commit]').click find('input[name=commit]').click
end end