diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-08-02 12:27:24 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-02 12:27:24 +0300 |
commit | 974a04026dd1043981c25e64c9827c3b8d15a927 (patch) | |
tree | 6911de2ce71ee949e224b593e5c8b693c4dd0eda /spec/features/groups | |
parent | 6f66b19b939560a94cd2e89d94f203948ca2f2fb (diff) |
Add filtered search to group issue dashboard
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/issues_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/groups/issues_spec.rb b/spec/features/groups/issues_spec.rb index 449a99a2c7b..cdf7aceb13c 100644 --- a/spec/features/groups/issues_spec.rb +++ b/spec/features/groups/issues_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' feature 'Group issues page' do + include FilteredSearchHelpers + let(:path) { issues_group_path(group) } let(:issuable) { create(:issue, project: project, title: "this is my created issuable")} @@ -31,12 +33,10 @@ feature 'Group issues page' do let(:path) { issues_group_path(group) } it 'filters by only group users' do - click_button('Assignee') - - wait_for_requests + filtered_search.set('assignee:') - expect(find('.dropdown-menu-assignee')).to have_link(user.name) - expect(find('.dropdown-menu-assignee')).not_to have_link(user2.name) + expect(find('#js-dropdown-assignee .filter-dropdown')).to have_content(user.name) + expect(find('#js-dropdown-assignee .filter-dropdown')).not_to have_content(user2.name) end end end |