2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-06-22 15:30:34 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
describe 'Projects > Members > Group requester cannot request access to project', :js do
|
2016-06-22 15:30:34 +05:30
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:owner) { create(:user) }
|
2019-12-21 20:55:43 +05:30
|
|
|
let(:group) { create(:group, :public) }
|
|
|
|
let(:project) { create(:project, :public, namespace: group) }
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
before do
|
2016-06-22 15:30:34 +05:30
|
|
|
group.add_owner(owner)
|
2017-09-10 17:25:29 +05:30
|
|
|
sign_in(user)
|
2016-06-22 15:30:34 +05:30
|
|
|
visit group_path(group)
|
|
|
|
perform_enqueued_jobs { click_link 'Request Access' }
|
2017-09-10 17:25:29 +05:30
|
|
|
visit project_path(project)
|
2016-06-22 15:30:34 +05:30
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
it 'group requester does not see the request access / withdraw access request button' do
|
2016-06-22 15:30:34 +05:30
|
|
|
expect(page).not_to have_content 'Request Access'
|
|
|
|
expect(page).not_to have_content 'Withdraw Access Request'
|
|
|
|
end
|
|
|
|
end
|