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
d9629a0c
Commit
d9629a0c
authored
Jan 17, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for CI Lint button exposed on a builds page
parent
59ffe978
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
features/project/builds/summary.feature
features/project/builds/summary.feature
+7
-3
features/steps/project/builds/summary.rb
features/steps/project/builds/summary.rb
+8
-1
features/steps/shared/builds.rb
features/steps/shared/builds.rb
+5
-1
No files found.
features/project/builds/summary.feature
View file @
d9629a0c
...
...
@@ -5,7 +5,11 @@ Feature: Project Builds Summary
And
project has CI enabled
And
project has a recent build
Scenario
:
I
browse build
summary
page
When
I visit recent build
summary
page
Then
I see
summary for
build
Scenario
:
I
browse build
details
page
When
I visit recent build
details
page
Then
I see
details of a
build
And
I see build trace
Scenario
:
I
browse project builds page
When
I visit project builds page
Then
I see button to CI Lint Tool
features/steps/project/builds/summary.rb
View file @
d9629a0c
...
...
@@ -4,11 +4,18 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
include
SharedBuilds
include
RepoHelpers
step
'I see
summary for
build'
do
step
'I see
details of a
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 see button to CI Lint Tool'
do
page
.
within
(
'.controls'
)
do
ci_lint_tool_link
=
page
.
find_link
(
'CI Lint Tool'
)
expect
(
ci_lint_tool_link
[
:href
]).
to
eq
ci_lint_path
end
end
end
features/steps/shared/builds.rb
View file @
d9629a0c
...
...
@@ -10,10 +10,14 @@ module SharedBuilds
@build
=
create
:ci_build
,
commit:
ci_commit
end
step
'I visit recent build
summary
page'
do
step
'I visit recent build
details
page'
do
visit
namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
)
end
step
'I visit project builds page'
do
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
)
end
step
'recent build has artifacts available'
do
artifacts
=
Rails
.
root
+
'spec/fixtures/ci_build_artifacts.zip'
archive
=
fixture_file_upload
(
artifacts
,
'application/zip'
)
...
...
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