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
|
2017-08-30 07:33:06 -04:00
|
|
|
page.within '.nav-sidebar' do
|
2016-05-16 13:36:27 -04:00
|
|
|
click_link('Edit Project')
|
2014-02-06 09:17:33 -05:00
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2016-12-30 16:09:31 -05:00
|
|
|
step 'I click the "Integrations" tab' do
|
2017-08-30 07:33:06 -04:00
|
|
|
page.within '.nav-sidebar' do
|
2017-03-07 16:59:06 -05:00
|
|
|
click_link('Integrations')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2017-01-30 14:21:02 -05:00
|
|
|
step 'I click the "Repository" tab' do
|
2017-08-30 09:40:07 -04:00
|
|
|
page.within '.sidebar-top-level-items > .active' do
|
2017-01-30 14:21:02 -05:00
|
|
|
click_link('Repository')
|
|
|
|
end
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2017-03-06 18:52:57 -05:00
|
|
|
step 'I click the "Activity" tab' do
|
2017-08-30 09:40:07 -04:00
|
|
|
page.within '.sidebar-top-level-items > .active' do
|
2017-03-06 18:52:57 -05:00
|
|
|
click_link('Activity')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-07 16:59:06 -05:00
|
|
|
step 'the active sub tab should be Members' do
|
|
|
|
ensure_active_sub_tab('Members')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2017-03-07 16:59:06 -05:00
|
|
|
step 'the active sub tab should be Integrations' do
|
|
|
|
ensure_active_sub_tab('Integrations')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2017-03-07 16:59:06 -05:00
|
|
|
step 'the active sub tab should be Repository' do
|
|
|
|
ensure_active_sub_tab('Repository')
|
2012-09-25 20:11:57 -04:00
|
|
|
end
|
|
|
|
|
2017-03-07 16:59:06 -05:00
|
|
|
step 'the active sub tab should be Pages' do
|
|
|
|
ensure_active_sub_tab('Pages')
|
2016-02-14 14:28:02 -05:00
|
|
|
end
|
|
|
|
|
2017-03-06 18:52:57 -05:00
|
|
|
step 'the active sub tab should be Activity' do
|
|
|
|
ensure_active_sub_tab('Activity')
|
|
|
|
end
|
|
|
|
|
2012-09-25 20:11:57 -04:00
|
|
|
# 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
|
2017-08-30 07:33:06 -04:00
|
|
|
page.within '.nav-sidebar' do
|
2016-05-16 13:36:27 -04:00
|
|
|
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
|
|
|
|
|
2017-03-06 18:52:57 -05:00
|
|
|
step 'I click the "Charts" tab' do
|
2017-08-30 09:40:07 -04:00
|
|
|
page.within('.sidebar-top-level-items > .active') do
|
2017-03-06 18:52:57 -05:00
|
|
|
click_link('Charts')
|
|
|
|
end
|
|
|
|
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
|
2017-08-30 07:33:06 -04:00
|
|
|
page.within('.nav-sidebar') 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
|
2017-08-30 07:33:06 -04:00
|
|
|
page.within('.nav-sidebar') 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
|