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
11
features/steps/shared/active_tab.rb
Normal file
11
features/steps/shared/active_tab.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
module SharedActiveTab
|
||||
include Spinach::DSL
|
||||
|
||||
def ensure_active_main_tab(content)
|
||||
page.find('ul.main_menu li.current').should have_content(content)
|
||||
end
|
||||
|
||||
And 'no other main tabs should be active' do
|
||||
page.should have_selector('ul.main_menu li.current', count: 1)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue