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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
963ec234
Commit
963ec234
authored
Apr 25, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test related to a bug of network graph.
parent
b36b40ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
features/project/network.feature
features/project/network.feature
+6
-4
features/steps/project/project_network_graph.rb
features/steps/project/project_network_graph.rb
+9
-0
No files found.
features/project/network.feature
View file @
963ec234
...
...
@@ -11,14 +11,16 @@ Feature: Project Network Graph
And
page should have
"master"
on graph
@javascript
Scenario
:
I
should switch
ref to
"stable
"
Scenario
:
I
should switch
"branch"
and
"tag
"
When
I switch ref to
"stable"
Then
page should have network graph
And
page should select
"stable"
in select box
Then
page should select
"stable"
in select box
And
page should have
"stable"
on graph
When
I switch ref to
"v2.1.0"
Then
page should select
"v2.1.0"
in select box
And
page should have
"v2.1.0"
on graph
@javascript
Scenario
:
I
should looking for a commit by SHA
of
"v2.1.0"
Scenario
:
I
should looking for a commit by SHA
When
I looking for a commit by SHA of
"v2.1.0"
Then
page should have network graph
And
page should select
"master"
in select box
...
...
features/steps/project/project_network_graph.rb
View file @
963ec234
...
...
@@ -30,10 +30,19 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
sleep
2
end
When
'I switch ref to "v2.1.0"'
do
page
.
select
'v2.1.0'
,
:from
=>
'ref'
sleep
2
end
And
'page should select "stable" in select box'
do
page
.
should
have_selector
'#ref_chzn span'
,
:text
=>
"stable"
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 "stable" on graph'
do
within
'.graph'
do
page
.
should
have_content
'stable'
...
...
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