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