2014-09-22 10:30:25 -04:00
|
|
|
class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
|
2012-09-25 20:11:57 -04:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
|
|
|
include SharedProject
|
|
|
|
include SharedActiveTab
|
2014-08-21 04:14:31 -04:00
|
|
|
include SharedProjectTab
|
2012-09-25 20:11:57 -04:00
|
|
|
|
|
|
|
# Sub Tabs: Home
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Team" tab' do
|
2013-06-18 10:09:04 -04:00
|
|
|
click_link('Members')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Attachments" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Attachments')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Snippets" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Snippets')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Edit" tab' do
|
2015-06-15 18:32:14 -04:00
|
|
|
page.within '.sidebar-subnav' do
|
|
|
|
click_link('Project Settings')
|
2014-02-06 09:17:33 -05:00
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Hooks" tab' do
|
2013-06-14 01:37:55 -04:00
|
|
|
click_link('Web Hooks')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Deploy Keys" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Deploy Keys')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub nav should be Team' do
|
2013-06-19 15:52:57 -04:00
|
|
|
ensure_active_sub_nav('Members')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub nav should be Edit' do
|
2014-02-06 09:17:33 -05:00
|
|
|
ensure_active_sub_nav('Project')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub nav should be Hooks' do
|
2013-06-19 15:52:57 -04:00
|
|
|
ensure_active_sub_nav('Web Hooks')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub nav should be Deploy Keys' do
|
2013-06-19 15:52:57 -04:00
|
|
|
ensure_active_sub_nav('Deploy Keys')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Sub Tabs: Commits
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Compare" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Compare')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Branches" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Branches')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Tags" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Tags')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub tab should be Commits' do
|
2012-09-25 20:11:57 -04:00
|
|
|
ensure_active_sub_tab('Commits')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub tab should be Compare' do
|
2012-09-25 20:11:57 -04:00
|
|
|
ensure_active_sub_tab('Compare')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub tab should be Branches' do
|
2012-09-25 20:11:57 -04:00
|
|
|
ensure_active_sub_tab('Branches')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'the active sub tab should be Tags' do
|
2012-09-25 20:11:57 -04:00
|
|
|
ensure_active_sub_tab('Tags')
|
|
|
|
end
|
|
|
|
|
|
|
|
# Sub Tabs: Issues
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Milestones" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Milestones')
|
|
|
|
end
|
|
|
|
|
2014-09-21 17:40:22 -04:00
|
|
|
step 'I click the "Labels" tab' do
|
2012-09-25 20:11:57 -04:00
|
|
|
click_link('Labels')
|
|
|
|
end
|
|
|
|
|
2014-12-02 04:31:57 -05:00
|
|
|
step 'the active sub tab should be Issues' do
|
|
|
|
ensure_active_sub_tab('Issues')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2015-02-19 20:24:34 -05:00
|
|
|
step 'the active main tab should be Milestones' do
|
|
|
|
ensure_active_main_tab('Milestones')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2015-02-19 20:24:34 -05:00
|
|
|
step 'the active main tab should be Labels' do
|
|
|
|
ensure_active_main_tab('Labels')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
end
|