Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-12 10:44:53 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-12 12:36:55 +0300
commitd2a9d95a2237aa3d6a93be5df012838180b704b7 (patch)
tree5e9882816ec15133a88fb47bb743fb9c8d66aae3 /spec/features/dashboard
parent2c25a7ae3453e72ad6cab504255e327c17df0a95 (diff)
Skip some nested group specs when using MySQL
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r--spec/features/dashboard/groups_list_spec.rb19
1 files changed, 14 insertions, 5 deletions
diff --git a/spec/features/dashboard/groups_list_spec.rb b/spec/features/dashboard/groups_list_spec.rb
index c9d9371f5ab..3f68e63797d 100644
--- a/spec/features/dashboard/groups_list_spec.rb
+++ b/spec/features/dashboard/groups_list_spec.rb
@@ -22,15 +22,24 @@ feature 'Dashboard Groups page', :js do
wait_for_requests
expect(page).to have_content(group.name)
- expect(page).to have_content(nested_group.parent.name)
+ expect(page).not_to have_content(another_group.name)
+ end
+
+ it 'shows subgroups the user is member of', :nested_groups do
+ group.add_owner(user)
+ nested_group.add_owner(user)
+
+ sign_in(user)
+ visit dashboard_groups_path
+ wait_for_requests
+
+ expect(page).to have_content(nested_group.parent.name)
click_group_caret(nested_group.parent)
expect(page).to have_content(nested_group.name)
-
- expect(page).not_to have_content(another_group.name)
end
- describe 'when filtering groups' do
+ describe 'when filtering groups', :nested_groups do
before do
group.add_owner(user)
nested_group.add_owner(user)
@@ -64,7 +73,7 @@ feature 'Dashboard Groups page', :js do
end
end
- describe 'group with subgroups' do
+ describe 'group with subgroups', :nested_groups do
let!(:subgroup) { create(:group, :public, parent: group) }
before do