diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-09 13:45:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-09 13:45:21 +0000 |
commit | e038d630d54e51e79b1b5e2091b7271b3cca5bf6 (patch) | |
tree | 83fc7068217a12f843db440e265d68e32c083094 /test/ui | |
parent | 6d4e43f3fb22407fb19a1a6cfaaf5711c151c604 (diff) | |
download | redmine-e038d630d54e51e79b1b5e2091b7271b3cca5bf6.tar.gz redmine-e038d630d54e51e79b1b5e2091b7271b3cca5bf6.zip |
prevent assert_difference failure of test_bulk_watch_issues_via_context_menu at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11809 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r-- | test/ui/issues_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 3464030e7..0e95c907b 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -208,6 +208,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base def test_bulk_watch_issues_via_context_menu log_user('jsmith', 'jsmith') visit '/issues' + assert page.has_css?('tr#issue-1') + assert page.has_css?('tr#issue-4') find('tr#issue-1 input[type=checkbox]').click find('tr#issue-4 input[type=checkbox]').click page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" @@ -215,6 +217,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base within('#context-menu') do click_link 'Watch' end + assert page.has_css?('tr#issue-1') + assert page.has_css?('tr#issue-4') end assert Issue.find(1).watched_by?(User.find_by_login('jsmith')) assert Issue.find(4).watched_by?(User.find_by_login('jsmith')) |