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
Kazuhiko Shiozaki
gitlab-ce
Commits
1738055d
Commit
1738055d
authored
Apr 14, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for "Show only selected tag"
parent
6505cd5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
features/project/network.feature
features/project/network.feature
+9
-0
features/steps/project/project_network_graph.rb
features/steps/project/project_network_graph.rb
+26
-0
No files found.
features/project/network.feature
View file @
1738055d
...
@@ -25,3 +25,12 @@ Feature: Project Network Graph
...
@@ -25,3 +25,12 @@ Feature: Project Network Graph
Then
page should have network graph
Then
page should have network graph
And
page should select
"master"
in select box
And
page should select
"master"
in select box
And
page should have
"v2.1.0"
on graph
And
page should have
"v2.1.0"
on graph
@javascript
Scenario
:
I
should filter selected tag
When
I switch ref to
"v2.1.0"
Then
page should have content not cotaining
"v2.1.0"
When
click
"Show only selected branch"
checkbox
Then
page should not have content not cotaining
"v2.1.0"
When
click
"Show only selected branch"
checkbox
Then
page should have content not cotaining
"v2.1.0"
features/steps/project/project_network_graph.rb
View file @
1738055d
...
@@ -19,6 +19,10 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
...
@@ -19,6 +19,10 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
page
.
should
have_selector
'#ref_chzn span'
,
text:
"master"
page
.
should
have_selector
'#ref_chzn span'
,
text:
"master"
end
end
And
'page should select "v2.1.0" in select box'
do
page
.
should
have_selector
'#ref_chzn span'
,
text:
"v2.1.0"
end
And
'page should have "master" on graph'
do
And
'page should have "master" on graph'
do
within
'.graph'
do
within
'.graph'
do
page
.
should
have_content
'master'
page
.
should
have_content
'master'
...
@@ -35,6 +39,28 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
...
@@ -35,6 +39,28 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
sleep
2
sleep
2
end
end
When
'I switch ref to "v2.1.0"'
do
page
.
select
'v2.1.0'
,
from:
'ref'
sleep
2
end
When
'click "Show only selected branch" checkbox'
do
find
(
'#filter_ref'
).
click
sleep
2
end
Then
'page should have content not cotaining "v2.1.0"'
do
within
'.graph'
do
page
.
should
have_content
'cleaning'
end
end
Then
'page should not have content not cotaining "v2.1.0"'
do
within
'.graph'
do
page
.
should_not
have_content
'cleaning'
end
end
And
'page should select "stable" in select box'
do
And
'page should select "stable" in select box'
do
page
.
should
have_selector
'#ref_chzn span'
,
text:
"stable"
page
.
should
have_selector
'#ref_chzn span'
,
text:
"stable"
end
end
...
...
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