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
e2e0a4d1
Commit
e2e0a4d1
authored
Mar 14, 2018
by
Mayra Cabrera
Committed by
Jose Ivan Vargas
Mar 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include feature spec for realtime pipeline
parent
52c79bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
spec/features/projects/blobs/blob_show_spec.rb
spec/features/projects/blobs/blob_show_spec.rb
+18
-9
No files found.
spec/features/projects/blobs/blob_show_spec.rb
View file @
e2e0a4d1
...
...
@@ -511,18 +511,27 @@ feature 'File blob', :js do
end
context
'realtime pipelines'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
ref:
'feature'
,
sha:
project
.
commit
.
id
,
user:
user
,
status: :success
)
}
before
do
project
.
add_master
(
user
)
sign_in
(
user
)
visit_blob
(
'files/ruby/popen.rb'
,
ref:
'feature'
)
Files
::
CreateService
.
new
(
project
,
project
.
creator
,
start_branch:
'feature'
,
branch_name:
'feature'
,
commit_message:
"Add ruby file"
,
file_path:
'files/ruby/test.rb'
,
file_content:
"# Awesome content"
).
execute
create
(
:ci_pipeline
,
status:
'running'
,
project:
project
,
ref:
'feature'
,
sha:
project
.
commit
(
'feature'
).
sha
)
visit_blob
(
'files/ruby/test.rb'
,
ref:
'feature'
)
end
it
'should show the realtime pipeline status'
do
wait_for_requests
expect
(
find
(
'.js-commit-pipeline-status'
)).
not_to
be
nil
page
.
within
(
'.commit-actions'
)
do
expect
(
page
).
to
have_css
(
'.ci-status-icon'
)
expect
(
page
).
to
have_css
(
'.ci-status-icon-running'
)
expect
(
page
).
to
have_css
(
'.js-ci-status-icon-running'
)
end
end
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