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/nav/top_nav_tooltip_spec.rb')
-rw-r--r--spec/features/nav/top_nav_tooltip_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/features/nav/top_nav_tooltip_spec.rb b/spec/features/nav/top_nav_tooltip_spec.rb
new file mode 100644
index 00000000000..58bfe1caf65
--- /dev/null
+++ b/spec/features/nav/top_nav_tooltip_spec.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'top nav tooltips', :js do
+ let_it_be(:user) { create(:user) }
+
+ before do
+ sign_in(user)
+ visit explore_projects_path
+ end
+
+ it 'clicking new dropdown hides tooltip', :aggregate_failures do
+ btn = '#js-onboarding-new-project-link'
+
+ page.find(btn).hover
+
+ expect(page).to have_content('Create new')
+
+ page.find(btn).click
+
+ expect(page).not_to have_content('Create new')
+ end
+end