Defect #35192 » 0002-fix-test-failures-watchers-dialog-pagination.patch
| app/controllers/watchers_controller.rb | ||
|---|---|---|
|
if @watchables.blank? || @watchables.all? {|w| w.valid_watcher?(user)}
|
||
|
valid_users << user
|
||
|
if valid_users.size == limit
|
||
|
has_more = has_more || (idx + 1 < batch.size)
|
||
|
has_more ||= (idx + 1 < batch.size)
|
||
|
current_offset += (idx + 1)
|
||
|
break
|
||
|
end
|
||
| test/functional/watchers_controller_test.rb | ||
|---|---|---|
|
assert_response :success
|
||
|
assert_match(
|
||
|
%r{/watchers/autocomplete_for_user\?object_id%5B%5D=7&object_id%5B%5D=9&object_type=issue},
|
||
|
%r{/watchers/autocomplete_for_user\?object_id%5B%5D=7&object_id%5B%5D=9&object_type=issue},
|
||
|
response.body
|
||
|
)
|
||
|
end
|
||
| test/system/watchers_test.rb | ||
|---|---|---|
|
click_on 'Add'
|
||
|
end
|
||
|
user1 = user2 = nil
|
||
|
within '#ajax-modal' do
|
||
|
assert page.has_css?('p.watcher-more-users a', text: 'Show more')
|
||
- « Previous
- 1
- …
- 5
- 6
- 7
- Next »