Skip to content
Snippets Groups Projects
Commit d3559e25 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

fix tabs features

parent 84652388
No related branches found
No related tags found
No related merge requests found
Loading
@@ -3,9 +3,9 @@ module SharedActiveTab
Loading
@@ -3,9 +3,9 @@ module SharedActiveTab
   
def ensure_active_main_tab(content) def ensure_active_main_tab(content)
if content == "Home" if content == "Home"
page.find('ul.main_menu li.active').should have_css('i.icon-home') page.find('.main-nav li.active').should have_css('i.icon-home')
else else
page.find('ul.main_menu li.active').should have_content(content) page.find('.main-nav li.active').should have_content(content)
end end
end end
   
Loading
@@ -14,7 +14,7 @@ module SharedActiveTab
Loading
@@ -14,7 +14,7 @@ module SharedActiveTab
end end
   
And 'no other main tabs should be active' do And 'no other main tabs should be active' do
page.should have_selector('ul.main_menu li.active', count: 1) page.should have_selector('.main-nav li.active', count: 1)
end end
   
And 'no other sub tabs should be active' do And 'no other sub tabs should be active' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment