2019-07-25 01:24:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-04-16 12:02:12 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 14:09:01 -04:00
|
|
|
RSpec.describe 'IDE', :js do
|
2019-07-24 05:20:54 -04:00
|
|
|
describe 'sub-groups' do
|
2018-04-16 12:02:12 -04:00
|
|
|
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-07-11 10:36:08 -04:00
|
|
|
subgroup_project.add_maintainer(user)
|
2018-04-16 12:02:12 -04:00
|
|
|
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
|