ide_spec.rb 617 Bytes
Newer Older
1 2 3
require 'spec_helper'

describe 'IDE', :js do
4
  describe 'sub-groups', :nested_groups do
5 6 7 8 9 10
    let(:user) { create(:user) }
    let(:group) { create(:group) }
    let(:subgroup) { create(:group, parent: group) }
    let(:subgroup_project) { create(:project, :repository, namespace: subgroup) }

    before do
11
      subgroup_project.add_maintainer(user)
12 13 14 15 16 17 18 19 20 21 22 23 24 25
      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