summaryrefslogtreecommitdiffstats
path: root/test/ui
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-08 08:17:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-08 08:17:55 +0000
commit5c18e6d0459b3227fd9708a5c621eb9baae573c9 (patch)
treec32203747cd038f45330373cc13eda75845053b5 /test/ui
parentc4374cb960a08054bf6b92d375bc8ba9afd6c094 (diff)
downloadredmine-5c18e6d0459b3227fd9708a5c621eb9baae573c9.tar.gz
redmine-5c18e6d0459b3227fd9708a5c621eb9baae573c9.zip
Refresh watchers list when watching/unwatching an issue (#4334).
git-svn-id: http://svn.redmine.org/redmine/trunk@14238 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r--test/ui/issues_test_ui.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ui/issues_test_ui.rb b/test/ui/issues_test_ui.rb
index dec6565d9..cbca9f84d 100644
--- a/test/ui/issues_test_ui.rb
+++ b/test/ui/issues_test_ui.rb
@@ -227,6 +227,17 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
assert page.first('#sidebar').has_no_content?(user.name)
end
+ def test_watch_should_update_watchers_list
+ user = User.find(2)
+ log_user('jsmith', 'jsmith')
+ visit '/issues/1'
+ assert page.first('#sidebar').has_content?('Watchers (0)')
+
+ page.first('a.issue-1-watcher').click
+ assert page.first('#sidebar').has_content?('Watchers (1)')
+ assert page.first('#sidebar').has_content?(user.name)
+ end
+
def test_watch_issue_via_context_menu
log_user('jsmith', 'jsmith')
visit '/issues'