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
faaedbf0
Commit
faaedbf0
authored
Jul 31, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix network tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3a017a4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
features/project/network.feature
features/project/network.feature
+12
-12
features/steps/project/network_graph.rb
features/steps/project/network_graph.rb
+20
-20
No files found.
features/project/network.feature
View file @
faaedbf0
...
...
@@ -12,28 +12,28 @@ Feature: Project Network Graph
@javascript
Scenario
:
I
should switch
"branch"
and
"tag"
When
I switch ref to
"
stabl
e"
Then
page should select
"
stabl
e"
in select box
And
page should have
"
stabl
e"
on graph
When
I switch ref to
"v
2.1
.0"
Then
page should select
"v
2.1
.0"
in select box
And
page should have
"v
2.1
.0"
on graph
When
I switch ref to
"
featur
e"
Then
page should select
"
featur
e"
in select box
And
page should have
"
featur
e"
on graph
When
I switch ref to
"v
1.0
.0"
Then
page should select
"v
1.0
.0"
in select box
And
page should have
"v
1.0
.0"
on graph
@javascript
Scenario
:
I
should looking for a commit by SHA
When
I looking for a commit by SHA of
"v
2.1
.0"
When
I looking for a commit by SHA of
"v
1.0
.0"
Then
page should have network graph
And
page should select
"master"
in select box
And
page should have
"v
2.1
.0"
on graph
And
page should have
"v
1.0
.0"
on graph
@javascript
Scenario
:
I
should filter selected tag
When
I switch ref to
"v
2.1
.0"
Then
page should have content not containing
"v
2.1
.0"
When
I switch ref to
"v
1.0
.0"
Then
page should have content not containing
"v
1.0
.0"
When
click
"Show only selected branch"
checkbox
Then
page should not have content not containing
"v
2.1
.0"
Then
page should not have content not containing
"v
1.0
.0"
When
click
"Show only selected branch"
checkbox
Then
page should have content not containing
"v
2.1
.0"
Then
page should have content not containing
"v
1.0
.0"
Scenario
:
I
should fail to look for a commit
When
I look for a commit by
";"
...
...
features/steps/project/network_graph.rb
View file @
faaedbf0
...
...
@@ -19,8 +19,8 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
page
.
should
have_selector
'.select2-chosen'
,
text:
"master"
end
And
'page should select "v
2.1
.0" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"v
2.1
.0"
And
'page should select "v
1.0
.0" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"v
1.0
.0"
end
And
'page should have "master" on graph'
do
...
...
@@ -29,13 +29,13 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end
end
When
'I switch ref to "
stabl
e"'
do
page
.
select
'
stabl
e'
,
from:
'ref'
When
'I switch ref to "
featur
e"'
do
page
.
select
'
featur
e'
,
from:
'ref'
sleep
2
end
When
'I switch ref to "v
2.1
.0"'
do
page
.
select
'v
2.1
.0'
,
from:
'ref'
When
'I switch ref to "v
1.0
.0"'
do
page
.
select
'v
1.0
.0'
,
from:
'ref'
sleep
2
end
...
...
@@ -44,43 +44,43 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
sleep
2
end
Then
'page should have content not containing "v
2.1
.0"'
do
Then
'page should have content not containing "v
1.0
.0"'
do
within
'.network-graph'
do
page
.
should
have_content
'
cleaning
'
page
.
should
have_content
'
Change some files
'
end
end
Then
'page should not have content not containing "v
2.1
.0"'
do
Then
'page should not have content not containing "v
1.0
.0"'
do
within
'.network-graph'
do
page
.
should_not
have_content
'
cleaning
'
page
.
should_not
have_content
'
Change some files
'
end
end
And
'page should select "
stabl
e" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"
stabl
e"
And
'page should select "
featur
e" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"
featur
e"
end
And
'page should select "v
2.1
.0" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"v
2.1
.0"
And
'page should select "v
1.0
.0" in select box'
do
page
.
should
have_selector
'.select2-chosen'
,
text:
"v
1.0
.0"
end
And
'page should have "
stabl
e" on graph'
do
And
'page should have "
featur
e" on graph'
do
within
'.network-graph'
do
page
.
should
have_content
'
stabl
e'
page
.
should
have_content
'
featur
e'
end
end
When
'I looking for a commit by SHA of "v
2.1
.0"'
do
When
'I looking for a commit by SHA of "v
1.0
.0"'
do
within
".network-form"
do
fill_in
'extended_sha1'
,
with:
'
98d6492
'
fill_in
'extended_sha1'
,
with:
'
6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9
'
find
(
'button'
).
click
end
sleep
2
end
And
'page should have "v
2.1
.0" on graph'
do
And
'page should have "v
1.0
.0" on graph'
do
within
'.network-graph'
do
page
.
should
have_content
'v
2.1
.0'
page
.
should
have_content
'v
1.0
.0'
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