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/contextual_sidebar_spec.rb')
-rw-r--r--spec/features/contextual_sidebar_spec.rb32
1 files changed, 6 insertions, 26 deletions
diff --git a/spec/features/contextual_sidebar_spec.rb b/spec/features/contextual_sidebar_spec.rb
index ab322f18240..dffc87c2028 100644
--- a/spec/features/contextual_sidebar_spec.rb
+++ b/spec/features/contextual_sidebar_spec.rb
@@ -4,39 +4,19 @@ require 'spec_helper'
RSpec.describe 'Contextual sidebar', :js, feature_category: :remote_development do
context 'when context is a project' do
- let_it_be(:user) { create(:user, :no_super_sidebar) }
+ let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :repository, namespace: user.namespace) }
before do
sign_in(user)
+ visit project_path(project)
end
- context 'when analyzing the menu' do
- before do
- visit project_path(project)
- end
+ it 'shows flyout menu on other section on hover' do
+ expect(page).not_to have_link('Pipelines', href: project_pipelines_path(project))
- it 'shows flyout navs when collapsed or expanded apart from on the active item when expanded', :aggregate_failures do
- expect(page).not_to have_selector('.js-sidebar-collapsed')
-
- find('.rspec-link-pipelines').hover
-
- expect(page).to have_selector('.is-showing-fly-out')
-
- find('.rspec-project-link').hover
-
- expect(page).not_to have_selector('.is-showing-fly-out')
-
- find('.rspec-toggle-sidebar').click
-
- find('.rspec-link-pipelines').hover
-
- expect(page).to have_selector('.is-showing-fly-out')
-
- find('.rspec-project-link').hover
-
- expect(page).to have_selector('.is-showing-fly-out')
- end
+ find_button('Build').hover
+ expect(page).to have_link('Pipelines', href: project_pipelines_path(project))
end
end
end