Files
gitlabhq/features/steps/group_active_tab.rb
2015-11-05 16:33:56 +02:00

30 lines
678 B
Ruby

class Spinach::Features::GroupActiveTab < Spinach::FeatureSteps
include SharedAuthentication
include SharedUser
include SharedGroup
include SharedPaths
include SharedActiveTab
step 'the active sub nav should be Audit Events' do
ensure_active_sub_nav('Audit Events')
end
step 'the active main tab should be Settings' do
page.within '.nav-sidebar' do
expect(page).to have_content('Go to group')
end
end
step 'the active sub nav should be Web Hooks' do
ensure_active_sub_nav('Web Hooks')
end
step 'I go to "Audit Events"' do
click_link 'Audit Events'
end
step 'I go to "Web Hooks"' do
click_link 'Web Hooks'
end
end