2018-05-09 12:01:36 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'IDE', :js do
|
2018-12-23 12:14:25 +05:30
|
|
|
describe 'sub-groups', :nested_groups do
|
2018-05-09 12:01:36 +05:30
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:group) { create(:group) }
|
|
|
|
let(:subgroup) { create(:group, parent: group) }
|
|
|
|
let(:subgroup_project) { create(:project, :repository, namespace: subgroup) }
|
|
|
|
|
|
|
|
before do
|
2018-11-18 11:00:15 +05:30
|
|
|
subgroup_project.add_maintainer(user)
|
2018-05-09 12:01:36 +05:30
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit project_path(subgroup_project)
|
|
|
|
|
|
|
|
click_link('Web IDE')
|
|
|
|
|
|
|
|
wait_for_requests
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'loads project in web IDE' do
|
|
|
|
expect(page).to have_selector('.context-header', text: subgroup_project.name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|