debian-mirror-gitlab/features/steps/shared/project_tab.rb

57 lines
1.3 KiB
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
require_relative 'active_tab'
module SharedProjectTab
include Spinach::DSL
include SharedActiveTab
step 'the active main tab should be Home' do
ensure_active_main_tab('Project')
end
step 'the active main tab should be Files' do
ensure_active_main_tab('Files')
end
step 'the active main tab should be Commits' do
ensure_active_main_tab('Commits')
end
step 'the active main tab should be Graphs' do
ensure_active_main_tab('Graphs')
end
step 'the active main tab should be Issues' do
ensure_active_main_tab('Issues')
end
2015-09-11 14:41:01 +05:30
step 'the active main tab should be Members' do
ensure_active_main_tab('Members')
end
2015-04-26 12:48:37 +05:30
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
2015-09-11 14:41:01 +05:30
page.within '.nav-sidebar' do
2015-11-26 14:37:03 +05:30
expect(page).to have_content('Go to project')
2015-04-26 12:48:37 +05:30
end
end
2015-09-11 14:41:01 +05:30
step 'the active main tab should be Activity' do
ensure_active_main_tab('Activity')
end
2015-12-23 02:04:40 +05:30
step 'the active sub tab should be Network' do
ensure_active_sub_tab('Network')
end
2015-04-26 12:48:37 +05:30
end