fix active tabs tests
This commit is contained in:
parent
130f60d55b
commit
2af323bbd1
4 changed files with 8 additions and 4 deletions
|
@ -2,7 +2,11 @@ module SharedActiveTab
|
|||
include Spinach::DSL
|
||||
|
||||
def ensure_active_main_tab(content)
|
||||
page.find('ul.main_menu li.active').should have_content(content)
|
||||
if content == "Home"
|
||||
page.find('ul.main_menu li.active').should have_css('i.icon-home')
|
||||
else
|
||||
page.find('ul.main_menu li.active').should have_content(content)
|
||||
end
|
||||
end
|
||||
|
||||
def ensure_active_sub_tab(content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue