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:
authorVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-09-16 13:09:58 +0300
committerVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-09-16 13:09:58 +0300
commit2a966f1b4e2fc640249f3c99afcdb3f06d70aaeb (patch)
treeb206ffb44a67b906289267f5cbf38afc4109ba44 /spec/support/matchers
parent20295b3db379f4be02521cac591feca3452a2b1c (diff)
Improve 'spec/features/profiles/*' specs
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/navigation_matcher.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/matchers/navigation_matcher.rb b/spec/support/matchers/navigation_matcher.rb
new file mode 100644
index 00000000000..5b6d9c1a4df
--- /dev/null
+++ b/spec/support/matchers/navigation_matcher.rb
@@ -0,0 +1,6 @@
+RSpec::Matchers.define :have_active_navigation do |expected|
+ match do |page|
+ expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1)
+ expect(page.find('.sidebar-top-level-items > li.active')).to have_content(expected)
+ end
+end