summaryrefslogtreecommitdiff
path: root/spec/features/groups_spec.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-05 13:13:24 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-05 13:50:09 +0200
commit17dccc35ca4754405b87c87f81daec34e02ea7a1 (patch)
treebbaf21b48ac179587cf330738683dd5f5ab65267 /spec/features/groups_spec.rb
parent082c28cce697682b2e13e35eef3ce9f3ad95aa63 (diff)
downloadgitlab-ce-17dccc35ca4754405b87c87f81daec34e02ea7a1.tar.gz
Update feature specs for updated group lists
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 493dd551d25..da2edd8b980 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -90,11 +90,7 @@ feature 'Group' do
context 'as admin' do
before do
- visit group_path(group)
-
- pending('use the new subgroup button')
-
- click_link 'New Subgroup'
+ visit new_group_path(group, parent_id: group.id)
end
it 'creates a nested group' do
@@ -114,11 +110,8 @@ feature 'Group' do
sign_out(:user)
sign_in(user)
- visit group_path(group)
-
- pending('use the new subgroup button')
+ visit new_group_path(group, parent_id: group.id)
- click_link 'New Subgroup'
fill_in 'Group path', with: 'bar'
click_button 'Create group'
@@ -206,13 +199,15 @@ feature 'Group' do
describe 'group page with nested groups', :nested_groups, js: true do
let!(:group) { create(:group) }
let!(:nested_group) { create(:group, parent: group) }
+ let!(:project) { create(:project, namespace: group) }
let!(:path) { group_path(group) }
- it 'has nested groups tab with nested groups inside' do
- pending('the child should be visible on the show page')
+ it 'it renders projects and groups on the page' do
visit path
+ wait_for_requests
expect(page).to have_content(nested_group.name)
+ expect(page).to have_content(project.name)
end
end