summaryrefslogtreecommitdiff
path: root/features/steps/shared/project_tab.rb
blob: 901f7f76ee9090d44bb644aedd56cd4a5f0caf44 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
require_relative 'active_tab'

module SharedProjectTab
  include Spinach::DSL
  include SharedActiveTab

  step 'the active main tab should be Project' do
    ensure_active_main_tab('Project')
  end

  step 'the active main tab should be Repository' do
    ensure_active_main_tab('Repository')
  end

  step 'the active main tab should be Issues' do
    ensure_active_main_tab('Issues')
  end

  step 'the active sub tab should be Members' do
    ensure_active_sub_tab('Members')
  end

  step 'the active main tab should be Merge Requests' do
    ensure_active_main_tab('Merge Requests')
  end

  step 'the active main tab should be Snippets' do
    ensure_active_main_tab('Snippets')
  end

  step 'the active main tab should be Wiki' do
    ensure_active_main_tab('Wiki')
  end

  step 'the active main tab should be Members' do
    ensure_active_main_tab('Members')
  end

  step 'the active main tab should be Settings' do
    ensure_active_main_tab('Settings')
  end

  step 'the active sub tab should be Graph' do
    ensure_active_sub_tab('Graph')
  end

  step 'the active sub tab should be Files' do
    ensure_active_sub_tab('Files')
  end

  step 'the active sub tab should be Commits' do
    ensure_active_sub_tab('Commits')
  end

  step 'the active sub tab should be Home' do
    ensure_active_sub_tab('Home')
  end

  step 'the active sub tab should be Activity' do
    ensure_active_sub_tab('Activity')
  end

  step 'the active sub tab should be Charts' do
    ensure_active_sub_tab('Charts')
  end
end