diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-16 19:02:12 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-16 19:02:12 +0300 |
commit | 82b6f82f718b73d12d6d9ee7ff547bb4757ce0cd (patch) | |
tree | 45f1ee00b9d51c7f38403d1b33bde4a2af56b46e /spec/features | |
parent | ddd7a81d4f20ca656731d4c01512893d2559a012 (diff) |
Fixed web IDE not working for sub-groups
Closes #45412
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/ide_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/ide_spec.rb b/spec/features/ide_spec.rb new file mode 100644 index 00000000000..b3f24c2966d --- /dev/null +++ b/spec/features/ide_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' + +describe 'IDE', :js do + describe 'sub-groups' do + let(:user) { create(:user) } + let(:group) { create(:group) } + let(:subgroup) { create(:group, parent: group) } + let(:subgroup_project) { create(:project, :repository, namespace: subgroup) } + + before do + subgroup_project.add_master(user) + 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 |