summaryrefslogtreecommitdiffstats
path: root/test/system/issues_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 14:51:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 14:51:35 +0000
commit0b3bbd0e62616148933370b9a503b6d454a2e697 (patch)
tree82ed9189912dfa6612beb251c88af879dc4b398a /test/system/issues_test.rb
parent148e4e06605e15b3481055a75d7701d2ddc72bc6 (diff)
downloadredmine-0b3bbd0e62616148933370b9a503b6d454a2e697.tar.gz
redmine-0b3bbd0e62616148933370b9a503b6d454a2e697.zip
add new "update issue status" test to Issue system test
git-svn-id: http://svn.redmine.org/redmine/trunk@18656 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system/issues_test.rb')
-rw-r--r--test/system/issues_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index 90f2378d0..6e2753d6a 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -219,6 +219,20 @@ class IssuesTest < ApplicationSystemTestCase
assert_equal 'CF value', issue.custom_field_value(field)
end
+ test "update issue status" do
+ issue = Issue.generate!
+ log_user('jsmith', 'jsmith')
+ visit "/issues/#{issue.id}"
+ page.first(:link, 'Edit').click
+ assert page.has_select?("issue_status_id", {:selected => "New"})
+ page.find("#issue_status_id").select("Closed")
+ assert_no_difference 'Issue.count' do
+ page.first(:button, 'Submit').click
+ end
+ assert page.has_css?('#flash_notice')
+ assert_equal 5, issue.reload.status.id
+ end
+
test "removing issue shows confirm dialog" do
log_user('jsmith', 'jsmith')
visit '/issues/1'