BigW Consortium Gitlab

Commit d2a9d95a by Bob Van Landuyt

Skip some nested group specs when using MySQL

parent 2c25a7ae
......@@ -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
......
......@@ -32,7 +32,8 @@ feature 'Group show page' do
group.add_owner(user)
sign_in(user)
end
context 'when subgroups are supported', :js do
context 'when subgroups are supported', :js, :nested_groups do
before do
allow(Group).to receive(:supports_nested_groups?) { true }
visit path
......
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