2014-09-04 03:00:04 -04:00
|
|
|
require_relative 'active_tab'
|
|
|
|
|
2014-08-21 04:14:31 -04:00
|
|
|
module SharedProjectTab
|
|
|
|
include Spinach::DSL
|
|
|
|
include SharedActiveTab
|
|
|
|
|
|
|
|
step 'the active main tab should be Home' do
|
2014-09-02 04:47:25 -04:00
|
|
|
ensure_active_main_tab('Project')
|
2014-08-21 04:14:31 -04:00
|
|
|
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 Network' do
|
|
|
|
ensure_active_main_tab('Network')
|
|
|
|
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-06-08 19:12:38 -04:00
|
|
|
step 'the active main tab should be Members' do
|
|
|
|
ensure_active_main_tab('Members')
|
|
|
|
end
|
|
|
|
|
2014-08-21 04:14:31 -04:00
|
|
|
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-06-12 01:36:00 -04:00
|
|
|
page.within '.nav-sidebar' do
|
2015-06-12 00:44:13 -04:00
|
|
|
expect(page).to have_content('Back to project')
|
2015-02-23 21:43:39 -05:00
|
|
|
end
|
2014-08-21 04:14:31 -04:00
|
|
|
end
|
2015-07-08 10:55:04 -04:00
|
|
|
|
|
|
|
step 'the active main tab should be Activity' do
|
|
|
|
ensure_active_main_tab('Activity')
|
|
|
|
end
|
2014-08-21 04:14:31 -04:00
|
|
|
end
|