diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-25 22:07:41 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:32:24 -0400 |
commit | 51c1e499006df02ff3dfc2a781457a01cc77550f (patch) | |
tree | f0d64d460af2138a590e9a9cd66afd73e6b59b01 /features | |
parent | adcc6a0b0e08158353627a8a900971aca07429bd (diff) | |
download | gitlab-ce-51c1e499006df02ff3dfc2a781457a01cc77550f.tar.gz |
Change active tab and nav class to "active"
The main nav used active, the sub nav used current. This normalizes it.
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/shared/active_tab.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/features/steps/shared/active_tab.rb b/features/steps/shared/active_tab.rb index 33ac5cf5050..884f2d5fb71 100644 --- a/features/steps/shared/active_tab.rb +++ b/features/steps/shared/active_tab.rb @@ -2,10 +2,18 @@ module SharedActiveTab include Spinach::DSL def ensure_active_main_tab(content) - page.find('ul.main_menu li.current').should have_content(content) + page.find('ul.main_menu li.active').should have_content(content) + end + + def ensure_active_sub_tab(content) + page.find('div.content ul.nav-tabs li.active').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) + page.should have_selector('ul.main_menu li.active', count: 1) + end + + And 'no other sub tabs should be active' do + page.should have_selector('div.content ul.nav-tabs li.active', count: 1) end end |