Add features for checking the "Active Tab" across various pages
This commit is contained in:
parent
f814da38bf
commit
cada511f8b
11 changed files with 537 additions and 9 deletions
29
features/steps/admin/admin_active_tab.rb
Normal file
29
features/steps/admin/admin_active_tab.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
class AdminActiveTab < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedPaths
|
||||
include SharedActiveTab
|
||||
|
||||
Then 'the active main tab should be Home' do
|
||||
ensure_active_main_tab('Stats')
|
||||
end
|
||||
|
||||
Then 'the active main tab should be Projects' do
|
||||
ensure_active_main_tab('Projects')
|
||||
end
|
||||
|
||||
Then 'the active main tab should be Users' do
|
||||
ensure_active_main_tab('Users')
|
||||
end
|
||||
|
||||
Then 'the active main tab should be Logs' do
|
||||
ensure_active_main_tab('Logs')
|
||||
end
|
||||
|
||||
Then 'the active main tab should be Hooks' do
|
||||
ensure_active_main_tab('Hooks')
|
||||
end
|
||||
|
||||
Then 'the active main tab should be Resque' do
|
||||
ensure_active_main_tab('Resque')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue