Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
db35f3dc
Commit
db35f3dc
authored
Feb 14, 2016
by
Kamil Trzcinski
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for Active Tab
parent
b7fd7dae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
app/views/projects/pages/_disabled.html.haml
app/views/projects/pages/_disabled.html.haml
+1
-1
features/project/active_tab.feature
features/project/active_tab.feature
+7
-0
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+8
-0
No files found.
app/views/projects/pages/_disabled.html.haml
View file @
db35f3dc
.panel.panel-default
.nothing-here-block
GitLab Pages
is
disabled.
GitLab Pages
are
disabled.
Ask your system's administrator to enable it.
features/project/active_tab.feature
View file @
db35f3dc
...
...
@@ -53,6 +53,13 @@ Feature: Project Active Tab
And
no other sub navs should be active
And
the active main tab should be Settings
Scenario
:
On Project Settings/Pages
Given
I visit my project's settings page
And
I click the
"Pages"
tab
Then
the active sub nav should be Pages
And
no other sub navs should be active
And
the active main tab should be Settings
Scenario
:
On Project Members
Given
I visit my project's members page
Then
the active sub nav should be Members
...
...
features/steps/project/active_tab.rb
View file @
db35f3dc
...
...
@@ -35,6 +35,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
click_link
(
'Deploy Keys'
)
end
step
'I click the "Pages" tab'
do
click_link
(
'Pages'
)
end
step
'the active sub nav should be Members'
do
ensure_active_sub_nav
(
'Members'
)
end
...
...
@@ -47,6 +51,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_nav
(
'Deploy Keys'
)
end
step
'the active sub nav should be Pages'
do
ensure_active_sub_nav
(
'Pages'
)
end
# Sub Tabs: Commits
step
'I click the "Compare" tab'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment