]> source.dussan.org Git - redmine.git/commitdiff
add more asserting to test_create_issue_with_watchers of ui issues_test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 11:34:25 +0000 (11:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 11:34:25 +0000 (11:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11804 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 080048c2cb5ceb2d819f6677bd14381afc017588..00951ba33fcf6c6adeca51f63aa414673a860999 100644 (file)
@@ -110,6 +110,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
     # Add a project member as watcher
     check 'Dave Lopper'
     # 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'
     within('form#new-watcher-form') do
       assert page.has_content?('Some One')
@@ -118,6 +120,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
       check 'Some Watcher'
       click_button 'Add'
     end
+    assert page.has_content?('Some Watcher')
     assert_difference 'Issue.count' do
       find('input[name=commit]').click
     end