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
|
2016-05-16 13:36:27 -04:00
|
|
|
page.within('.layout-nav') do
|
|
|
|
click_link('Snippets')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2016-05-16 13:36:27 -04:00
|
|
|
step 'I click the "Edit Project"' do
|
|
|
|
page.within '.layout-nav .controls' do
|
|
|
|
click_link('Edit Project')
|
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
|
2016-03-10 14:48:29 -05:00
|
|
|
click_link('Webhooks')
|
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
|
|
|
|
|
2016-05-16 13:36:27 -04:00
|
|
|
step 'the active sub nav should be Members' 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 Hooks' do
|
2016-03-10 14:48:29 -05:00
|
|
|
ensure_active_sub_nav('Webhooks')
|
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
|
2016-05-16 13:36:27 -04:00
|
|
|
page.within '.content' do
|
|
|
|
click_link('Branches')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
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 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
|
|
|
|
|
2016-06-10 11:33:44 -04:00
|
|
|
step 'I click the "Milestones" sub tab' do
|
|
|
|
page.within('.sub-nav') do
|
2016-05-16 13:36:27 -04:00
|
|
|
click_link('Milestones')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2016-06-10 11:33:44 -04:00
|
|
|
step 'I click the "Labels" sub tab' do
|
|
|
|
page.within('.sub-nav') do
|
2016-05-16 13:36:27 -04:00
|
|
|
click_link('Labels')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
|
|
|
|
2016-06-10 11:33:44 -04:00
|
|
|
step 'the active sub tab should be Milestones' do
|
|
|
|
ensure_active_sub_tab('Milestones')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2016-06-10 11:33:44 -04:00
|
|
|
step 'the active sub tab should be Labels' do
|
|
|
|
ensure_active_sub_tab('Labels')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
end
|