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
Léo-Paul Géneau
gitlab-ce
Commits
599fb7ef
Commit
599fb7ef
authored
Oct 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature specs for pipeline failure reason badge
parent
123da5fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
spec/factories/ci/pipelines.rb
spec/factories/ci/pipelines.rb
+1
-0
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+10
-0
No files found.
spec/factories/ci/pipelines.rb
View file @
599fb7ef
...
...
@@ -47,6 +47,7 @@ FactoryGirl.define do
trait
:invalid
do
config
(
rspec:
nil
)
failure_reason
:config_error
end
trait
:blocked
do
...
...
spec/features/projects/pipelines/pipelines_spec.rb
View file @
599fb7ef
...
...
@@ -162,6 +162,16 @@ describe 'Pipelines', :js do
expect
(
page
).
to
have_selector
(
%Q{span[data-original-title="
#{
pipeline
.
yaml_errors
}
"]}
)
end
it
'contains badge that indicates failure reason'
do
expect
(
page
).
to
have_content
'error'
end
it
'contains badge with tooltip which contains failure reason'
do
expect
(
pipeline
.
failure_reason?
).
to
eq
true
expect
(
page
).
to
have_selector
(
%Q{span[data-original-title="
#{
pipeline
.
present
.
failure_reason
}
"]}
)
end
end
context
'with manual actions'
do
...
...
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