diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-06-15 18:46:18 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-06-15 18:46:18 +0000 |
commit | 4ba75b80ca91df7fb777327990b050682582e9d9 (patch) | |
tree | 152d6fd38168d7e1625837d2294161a69bb78bb3 /test/system | |
parent | f97d2572b6a5e7709b4412aa70dbf10c9b45a159 (diff) | |
download | redmine-4ba75b80ca91df7fb777327990b050682582e9d9.tar.gz redmine-4ba75b80ca91df7fb777327990b050682582e9d9.zip |
add bulk update issues test to IssuesSystemTest
git-svn-id: http://svn.redmine.org/redmine/trunk@19822 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/issues_test.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 613aedaee..e213b690e 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -306,6 +306,27 @@ class IssuesSystemTest < ApplicationSystemTestCase assert Issue.find(4).watched_by?(User.find_by_login('jsmith')) end + def test_bulk_update_issues + log_user('jsmith', 'jsmith') + visit '/issues' + issue1 = Issue.find(1) + issue4 = Issue.find(4) + assert_equal 1, issue1.reload.status.id + assert_equal 1, issue4.reload.status.id + 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 + find('tr#issue-1 td.updated_on').right_click + within('#context-menu') do + click_link 'Status' + click_link 'Closed' + end + assert page.has_css?('#flash_notice') + assert_equal 5, issue1.reload.status.id + assert_equal 5, issue4.reload.status.id + end + def test_issue_list_with_default_totalable_columns log_user('admin', 'admin') with_settings :issue_list_default_totals => ['estimated_hours'] do |