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
bd7c52c7
Commit
bd7c52c7
authored
Feb 01, 2016
by
Grzegorz Bizon
Committed by
Grzegorz Bizon
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature specs for build erase button
parent
f3e92fb4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
features/project/builds/summary.feature
features/project/builds/summary.feature
+7
-0
features/steps/project/builds/summary.rb
features/steps/project/builds/summary.rb
+14
-0
features/steps/shared/builds.rb
features/steps/shared/builds.rb
+4
-0
No files found.
features/project/builds/summary.feature
View file @
bd7c52c7
...
@@ -13,3 +13,10 @@ Feature: Project Builds Summary
...
@@ -13,3 +13,10 @@ Feature: Project Builds Summary
Scenario
:
I
browse project builds page
Scenario
:
I
browse project builds page
When
I visit project builds page
When
I visit project builds page
Then
I see button to CI Lint
Then
I see button to CI Lint
Scenario
:
I
erase a build
Given
recent build has a build trace
When
I visit recent build details page
And
I click erase build button
Then
recent build has been erased
And
recent build summary does not have artifacts widget
features/steps/project/builds/summary.rb
View file @
bd7c52c7
...
@@ -10,4 +10,18 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
...
@@ -10,4 +10,18 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
expect
(
ci_lint_tool_link
[
:href
]).
to
eq
ci_lint_path
expect
(
ci_lint_tool_link
[
:href
]).
to
eq
ci_lint_path
end
end
end
end
step
'I click erase build button'
do
click_link
'Erase'
end
step
'recent build has been erased'
do
expect
(
@build
.
artifacts_file
.
exists?
).
to
be_falsy
expect
(
@build
.
artifacts_metadata
.
exists?
).
to
be_falsy
expect
(
File
.
zero?
(
@build
.
path_to_trace
)).
to
be
true
end
step
'recent build summary does not have artifacts widget'
do
expect
(
page
).
to
have_no_css
(
'.artifacts'
)
end
end
end
features/steps/shared/builds.rb
View file @
bd7c52c7
...
@@ -42,6 +42,10 @@ module SharedBuilds
...
@@ -42,6 +42,10 @@ module SharedBuilds
@build
.
update_attributes
(
artifacts_metadata:
gzip
)
@build
.
update_attributes
(
artifacts_metadata:
gzip
)
end
end
step
'recent build has a build trace'
do
@build
.
trace
=
'build trace'
end
step
'download of build artifacts archive starts'
do
step
'download of build artifacts archive starts'
do
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
'application/zip'
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
'application/zip'
expect
(
page
.
response_headers
[
'Content-Transfer-Encoding'
]).
to
eq
'binary'
expect
(
page
.
response_headers
[
'Content-Transfer-Encoding'
]).
to
eq
'binary'
...
...
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