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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b7bb56c7
Commit
b7bb56c7
authored
Jan 15, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand builds namespace for feature tests in spinach
parent
f66f9e95
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
+27
-15
features/project/builds/artifacts.feature
features/project/builds/artifacts.feature
+1
-6
features/project/builds/summary.feature
features/project/builds/summary.feature
+11
-0
features/steps/project/builds/artifacts.rb
features/steps/project/builds/artifacts.rb
+1
-9
features/steps/project/builds/summary.rb
features/steps/project/builds/summary.rb
+14
-0
No files found.
features/project/builds.feature
→
features/project/builds
/artifacts
.feature
View file @
b7bb56c7
Feature
:
Project Builds
Feature
:
Project Builds
Artifacts
Background
:
Given
I sign in as a user
And
I own a project
And
CI is enabled
And
I have recent build for my project
Scenario
:
I
browse build summary page
When
I visit recent build summary page
Then
I see summary for build
And
I see build trace
Scenario
:
I
download build artifacts
Given
recent build has artifacts available
When
I visit recent build summary page
...
...
features/project/builds/summary.feature
0 → 100644
View file @
b7bb56c7
Feature
:
Project Builds Summary
Background
:
Given
I sign in as a user
And
I own a project
And
CI is enabled
And
I have recent build for my project
Scenario
:
I
browse build summary page
When
I visit recent build summary page
Then
I see summary for build
And
I see build trace
features/steps/project/builds.rb
→
features/steps/project/builds
/artifacts
.rb
View file @
b7bb56c7
class
Spinach::Features::ProjectBuilds
<
Spinach
::
FeatureSteps
class
Spinach::Features::ProjectBuilds
Artifacts
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedBuilds
include
RepoHelpers
step
'I see summary for build'
do
expect
(
page
).
to
have_content
"Build #
#{
@build
.
id
}
"
end
step
'I see build trace'
do
expect
(
page
).
to
have_css
'#build-trace'
end
step
'I click artifacts download button'
do
page
.
within
(
'.artifacts'
)
{
click_link
'Download'
}
end
...
...
features/steps/project/builds/summary.rb
0 → 100644
View file @
b7bb56c7
class
Spinach::Features::ProjectBuildsSummary
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedProject
include
SharedBuilds
include
RepoHelpers
step
'I see summary for build'
do
expect
(
page
).
to
have_content
"Build #
#{
@build
.
id
}
"
end
step
'I see build trace'
do
expect
(
page
).
to
have_css
'#build-trace'
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