Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-26 06:07:41 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-27 00:32:24 +0400
commit51c1e499006df02ff3dfc2a781457a01cc77550f (patch)
treef0d64d460af2138a590e9a9cd66afd73e6b59b01 /features
parentadcc6a0b0e08158353627a8a900971aca07429bd (diff)
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.rb12
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