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
Jérome Perrin
gitlab-ce
Commits
f0c73a5b
Commit
f0c73a5b
authored
Mar 13, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove sleeps from network graph feature spec
parent
30ab290b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
features/project/network_graph.feature
features/project/network_graph.feature
+2
-1
features/steps/project/network_graph.rb
features/steps/project/network_graph.rb
+5
-4
No files found.
features/project/network_graph.feature
View file @
f0c73a5b
...
...
@@ -34,9 +34,10 @@ Feature: Project Network Graph
@javascript
Scenario
:
I
should filter selected tag
When
I switch ref to
"v1.0.0"
Then
page should have
"v1.0.0"
in title
Then
page should have content not containing
"v1.0.0"
When
click
"Show only selected branch"
checkbox
Then
page should
not have content not containing
"v1.0.0"
Then
page should
only have content from
"v1.0.0"
When
click
"Show only selected branch"
checkbox
Then
page should have content not containing
"v1.0.0"
...
...
features/steps/project/network_graph.rb
View file @
f0c73a5b
...
...
@@ -41,17 +41,14 @@ class Spinach::Features::ProjectNetworkGraph < Spinach::FeatureSteps
When
'I switch ref to "feature"'
do
select
'feature'
,
from:
'ref'
sleep
2
end
When
'I switch ref to "v1.0.0"'
do
select
'v1.0.0'
,
from:
'ref'
sleep
2
end
When
'click "Show only selected branch" checkbox'
do
find
(
'#filter_ref'
).
click
sleep
2
end
step
'page should have content not containing "v1.0.0"'
do
...
...
@@ -60,7 +57,11 @@ class Spinach::Features::ProjectNetworkGraph < Spinach::FeatureSteps
end
end
step
'page should not have content not containing "v1.0.0"'
do
step
'page should have "v1.0.0" in title'
do
expect
(
page
).
to
have_css
'title'
,
text:
'Network · v1.0.0'
,
visible:
false
end
step
'page should only have content from "v1.0.0"'
do
page
.
within
'.network-graph'
do
expect
(
page
).
not_to
have_content
'Change some files'
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