summaryrefslogtreecommitdiffstats
path: root/test/ui
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-20 20:49:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-20 20:49:01 +0000
commit2ae7ddcb24538987c46bd406c870dcac514d2912 (patch)
treed67892f72172d05cd8df08b9866f24ba4ea6aabb /test/ui
parentf88e4225c1c35d5667aa5dcf7af0ab8e7d096226 (diff)
downloadredmine-2ae7ddcb24538987c46bd406c870dcac514d2912.tar.gz
redmine-2ae7ddcb24538987c46bd406c870dcac514d2912.zip
Asserts that the watchers list is updated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11445 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/ui')
-rw-r--r--test/ui/issues_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb
index 66a6197bb..080048c2c 100644
--- a/test/ui/issues_test.rb
+++ b/test/ui/issues_test.rb
@@ -178,10 +178,12 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
log_user('jsmith', 'jsmith')
visit '/issues/1'
+ assert page.first('#sidebar').has_content?('Watchers (1)')
assert page.first('#sidebar').has_content?(user.name)
assert_difference 'Watcher.count', -1 do
page.first('ul.watchers .user-3 a.delete').click
end
+ assert page.first('#sidebar').has_content?('Watchers (0)')
assert page.first('#sidebar').has_no_content?(user.name)
end