project_tab.rb 1.17 KB
Newer Older
1 2
require_relative 'active_tab'

3 4 5 6 7
module SharedProjectTab
  include Spinach::DSL
  include SharedActiveTab

  step 'the active main tab should be Home' do
8
    ensure_active_main_tab('Project')
9 10
  end

Stan Hu's avatar
Stan Hu committed
11 12
  step 'the active main tab should be Repository' do
    ensure_active_main_tab('Repository')
13 14 15 16 17 18
  end

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

19 20 21 22
  step 'the active main tab should be Members' do
    ensure_active_main_tab('Members')
  end

23 24 25 26 27 28 29 30 31 32 33 34 35
  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 Settings' do
36
    expect(page).to have_selector('.layout-nav .nav-links > li.active', count: 0)
37
  end
38

39 40
  step 'the active sub tab should be Graph' do
    ensure_active_sub_tab('Graph')
41
  end
42 43 44 45 46 47 48 49

  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
50
end