Commit 82b6f82f authored by Phil Hughes's avatar Phil Hughes

Fixed web IDE not working for sub-groups

Closes #45412
parent ddd7a81d
...@@ -36,7 +36,7 @@ const router = new VueRouter({ ...@@ -36,7 +36,7 @@ const router = new VueRouter({
base: `${gon.relative_url_root}/-/ide/`, base: `${gon.relative_url_root}/-/ide/`,
routes: [ routes: [
{ {
path: '/project/:namespace/:project', path: '/project/:namespace/:project*',
component: EmptyRouterComponent, component: EmptyRouterComponent,
children: [ children: [
{ {
......
---
title: Fixed IDE not loading for sub groups
merge_request:
author:
type: fixed
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment