Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analyze_menu_spec.rb « super_sidebar_menus « groups « sidebars « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc2809df85f6445c022d52733bdee7e766cfec72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Sidebars::Groups::SuperSidebarMenus::AnalyzeMenu, feature_category: :navigation do
  subject { described_class.new({}) }

  let(:items) { subject.instance_variable_get(:@items) }

  it 'has title and sprite_icon' do
    expect(subject.title).to eq(s_("Navigation|Analyze"))
    expect(subject.sprite_icon).to eq("chart")
  end

  it 'defines list of NilMenuItem placeholders' do
    expect(items.map(&:class).uniq).to eq([Sidebars::NilMenuItem])
    expect(items.map(&:item_id)).to eq([
      :analytics_dashboards,
      :dashboards_analytics,
      :cycle_analytics,
      :ci_cd_analytics,
      :contribution_analytics,
      :devops_adoption,
      :insights,
      :issues_analytics,
      :productivity_analytics,
      :repository_analytics
    ])
  end
end