debian-mirror-gitlab/features/steps/project/active_tab.rb

128 lines
2.6 KiB
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
include SharedAuthentication
include SharedPaths
include SharedProject
include SharedActiveTab
2015-04-26 12:48:37 +05:30
include SharedProjectTab
2014-09-02 18:07:02 +05:30
# Sub Tabs: Home
2015-04-26 12:48:37 +05:30
step 'I click the "Team" tab' do
2014-09-02 18:07:02 +05:30
click_link('Members')
end
2015-04-26 12:48:37 +05:30
step 'I click the "Attachments" tab' do
2014-09-02 18:07:02 +05:30
click_link('Attachments')
end
2015-04-26 12:48:37 +05:30
step 'I click the "Snippets" tab' do
page.within('.layout-nav') do
click_link('Snippets')
end
2014-09-02 18:07:02 +05:30
end
step 'I click the "Edit Project"' do
2017-08-17 22:00:37 +05:30
page.within '.sub-nav' do
click_link('Edit Project')
2014-09-02 18:07:02 +05:30
end
end
2017-08-17 22:00:37 +05:30
step 'I click the "Integrations" tab' do
page.within '.sub-nav' do
click_link('Integrations')
end
2014-09-02 18:07:02 +05:30
end
2017-08-17 22:00:37 +05:30
step 'I click the "Repository" tab' do
page.within '.sub-nav' do
click_link('Repository')
end
end
step 'I click the "Activity" tab' do
page.within '.sub-nav' do
click_link('Activity')
end
2014-09-02 18:07:02 +05:30
end
2017-08-17 22:00:37 +05:30
step 'the active sub tab should be Members' do
ensure_active_sub_tab('Members')
2014-09-02 18:07:02 +05:30
end
2017-08-17 22:00:37 +05:30
step 'the active sub tab should be Integrations' do
ensure_active_sub_tab('Integrations')
2014-09-02 18:07:02 +05:30
end
2017-08-17 22:00:37 +05:30
step 'the active sub tab should be Repository' do
ensure_active_sub_tab('Repository')
end
step 'the active sub tab should be Pages' do
ensure_active_sub_tab('Pages')
end
step 'the active sub tab should be Activity' do
ensure_active_sub_tab('Activity')
2014-09-02 18:07:02 +05:30
end
# Sub Tabs: Commits
2015-04-26 12:48:37 +05:30
step 'I click the "Compare" tab' do
2014-09-02 18:07:02 +05:30
click_link('Compare')
end
2015-04-26 12:48:37 +05:30
step 'I click the "Branches" tab' do
2016-11-03 12:29:30 +05:30
page.within '.sub-nav' do
click_link('Branches')
end
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'I click the "Tags" tab' do
2014-09-02 18:07:02 +05:30
click_link('Tags')
end
2017-08-17 22:00:37 +05:30
step 'I click the "Charts" tab' do
page.within '.sub-nav' do
click_link('Charts')
end
end
2015-04-26 12:48:37 +05:30
step 'the active sub tab should be Compare' do
2014-09-02 18:07:02 +05:30
ensure_active_sub_tab('Compare')
end
2015-04-26 12:48:37 +05:30
step 'the active sub tab should be Branches' do
2014-09-02 18:07:02 +05:30
ensure_active_sub_tab('Branches')
end
2015-04-26 12:48:37 +05:30
step 'the active sub tab should be Tags' do
2014-09-02 18:07:02 +05:30
ensure_active_sub_tab('Tags')
end
# Sub Tabs: Issues
step 'I click the "Milestones" sub tab' do
page.within('.sub-nav') do
click_link('Milestones')
end
2014-09-02 18:07:02 +05:30
end
step 'I click the "Labels" sub tab' do
page.within('.sub-nav') do
click_link('Labels')
end
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'the active sub tab should be Issues' do
ensure_active_sub_tab('Issues')
2014-09-02 18:07:02 +05:30
end
step 'the active sub tab should be Milestones' do
ensure_active_sub_tab('Milestones')
2014-09-02 18:07:02 +05:30
end
step 'the active sub tab should be Labels' do
ensure_active_sub_tab('Labels')
2014-09-02 18:07:02 +05:30
end
end