2016-10-26 13:34:06 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
feature 'Group issues page', feature: true do
|
|
|
|
let(:path) { issues_group_path(group) }
|
|
|
|
let(:issuable) { create(:issue, project: project, title: "this is my created issuable")}
|
|
|
|
|
|
|
|
include_examples 'project features apply to issuables', Issue
|
2017-02-28 15:50:57 -05:00
|
|
|
|
|
|
|
context 'rss feed' do
|
|
|
|
let(:access_level) { ProjectFeature::ENABLED }
|
|
|
|
|
|
|
|
context 'when signed in' do
|
|
|
|
let(:user) { user_in_group }
|
|
|
|
|
2017-05-23 16:20:53 -04:00
|
|
|
it_behaves_like "it has an RSS button with current_user's RSS token"
|
|
|
|
it_behaves_like "an autodiscoverable RSS feed with current_user's RSS token"
|
2017-02-28 15:50:57 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
context 'when signed out' do
|
|
|
|
let(:user) { nil }
|
|
|
|
|
2017-05-23 16:20:53 -04:00
|
|
|
it_behaves_like "it has an RSS button without an RSS token"
|
|
|
|
it_behaves_like "an autodiscoverable RSS feed without an RSS token"
|
2017-02-28 15:50:57 -05:00
|
|
|
end
|
|
|
|
end
|
2017-04-24 11:15:24 -04:00
|
|
|
|
|
|
|
context 'assignee', :js do
|
|
|
|
let(:access_level) { ProjectFeature::ENABLED }
|
|
|
|
let(:user) { user_in_group }
|
|
|
|
let(:user2) { user_outside_group }
|
|
|
|
let(:path) { issues_group_path(group) }
|
|
|
|
|
|
|
|
it 'filters by only group users' do
|
|
|
|
click_button('Assignee')
|
|
|
|
|
2017-05-17 14:25:13 -04:00
|
|
|
wait_for_requests
|
2017-04-24 11:15:24 -04:00
|
|
|
|
|
|
|
expect(find('.dropdown-menu-assignee')).to have_link(user.name)
|
|
|
|
expect(find('.dropdown-menu-assignee')).not_to have_link(user2.name)
|
|
|
|
end
|
|
|
|
end
|
2016-10-26 13:34:06 -04:00
|
|
|
end
|