@@ -102,8 +102,8 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||
|
102 | 102 | end |
|
103 | 103 | |
|
104 | 104 | def test_create_issue_with_watchers |
|
105 | User.generate!(:firstname => 'Some', :lastname => 'Watcher') | |
|
106 | ||
|
105 | user = User.generate!(:firstname => 'Some', :lastname => 'Watcher') | |
|
106 | assert_equal 'Some Watcher', user.name | |
|
107 | 107 | log_user('jsmith', 'jsmith') |
|
108 | 108 | visit '/projects/ecookbook/issues/new' |
|
109 | 109 | fill_in 'Subject', :with => 'Issue with watchers' |
@@ -123,7 +123,9 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||
|
123 | 123 | assert page.has_css?('form#issue-form') |
|
124 | 124 | assert page.has_css?('p#watchers_form') |
|
125 | 125 | within('span#watchers_inputs') do |
|
126 | assert has_content?('Some Watcher'), "No watcher content" | |
|
126 | within("label#issue_watcher_user_ids_#{user.id}") do | |
|
127 | assert has_content?('Some Watcher'), "No watcher content" | |
|
128 | end | |
|
127 | 129 | end |
|
128 | 130 | assert_difference 'Issue.count' do |
|
129 | 131 | find('input[name=commit]').click |
General Comments 0
You need to be logged in to leave comments.
Login now