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:
Diffstat (limited to 'spec/features/groups/new_group_page_spec.rb')
-rw-r--r--spec/features/groups/new_group_page_spec.rb41
1 files changed, 8 insertions, 33 deletions
diff --git a/spec/features/groups/new_group_page_spec.rb b/spec/features/groups/new_group_page_spec.rb
index e1034f2bb9d..f86430ae617 100644
--- a/spec/features/groups/new_group_page_spec.rb
+++ b/spec/features/groups/new_group_page_spec.rb
@@ -12,42 +12,17 @@ RSpec.describe 'New group page', :js, feature_category: :groups_and_projects do
end
describe 'sidebar' do
- context 'in the current navigation' do
- before do
- user.update!(use_new_navigation: false)
- end
-
- context 'for a new top-level group' do
- it_behaves_like 'a "Your work" page with sidebar and breadcrumbs', :new_group_path, :groups
- end
-
- context 'for a new subgroup' do
- it 'shows the group sidebar of the parent group' do
- visit new_group_path(parent_id: parent_group.id, anchor: 'create-group-pane')
- expect(page).to have_selector(
- ".nav-sidebar[aria-label=\"Group navigation\"] .context-header[title=\"#{parent_group.name}\"]"
- )
- end
+ context 'for a new top-level group' do
+ it 'shows the "Your work" navigation' do
+ visit new_group_path
+ expect(page).to have_selector(".super-sidebar", text: "Your work")
end
end
- context 'in the new navigation' do
- before do
- user.update!(use_new_navigation: true)
- end
-
- context 'for a new top-level group' do
- it 'shows the "Your work" navigation' do
- visit new_group_path
- expect(page).to have_selector(".super-sidebar", text: "Your work")
- end
- end
-
- context 'for a new subgroup' do
- it 'shows the group navigation of the parent group' do
- visit new_group_path(parent_id: parent_group.id, anchor: 'create-group-pane')
- expect(page).to have_selector(".super-sidebar", text: parent_group.name)
- end
+ context 'for a new subgroup' do
+ it 'shows the group navigation of the parent group' do
+ visit new_group_path(parent_id: parent_group.id, anchor: 'create-group-pane')
+ expect(page).to have_selector(".super-sidebar", text: parent_group.name)
end
end
end