gitlab-org--gitlab-foss/spec/features/ide_spec.rb
Rémy Coutable aa0d8b4cba Merge branch 'frozen_string_spec_features' into 'master'
Add frozen_string_literal to spec/features

See merge request gitlab-org/gitlab-ce!31131
2019-07-29 08:29:43 +00:00

27 lines
632 B
Ruby

# frozen_string_literal: true
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_maintainer(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