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
Boxiang Sun
gitlab-ce
Commits
287c6ed1
Commit
287c6ed1
authored
Jan 23, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic feature specs for cross-project bridges
parent
2e67da65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
spec/features/projects/pipelines/pipeline_spec.rb
spec/features/projects/pipelines/pipeline_spec.rb
+43
-0
No files found.
spec/features/projects/pipelines/pipeline_spec.rb
View file @
287c6ed1
...
@@ -286,6 +286,49 @@ describe 'Pipeline', :js do
...
@@ -286,6 +286,49 @@ describe 'Pipeline', :js do
end
end
end
end
context
'when a bridge job exists'
do
include_context
'pipeline builds'
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:downstream
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
ref:
'master'
,
sha:
project
.
commit
.
id
,
user:
user
)
end
let!
(
:bridge
)
do
create
(
:ci_bridge
,
pipeline:
pipeline
,
name:
'cross-build'
,
user:
user
,
downstream:
downstream
)
end
describe
'GET /:project/pipelines/:id'
do
before
do
visit
project_pipeline_path
(
project
,
pipeline
)
end
it
'shows the pipeline with a bridge job'
do
expect
(
page
).
to
have_selector
(
'.pipeline-visualization'
)
expect
(
page
).
to
have_content
(
'cross-build'
)
end
end
describe
'GET /:project/pipelines/:id/builds'
do
before
do
visit
builds_project_pipeline_path
(
project
,
pipeline
)
end
it
'shows a bridge job on a list'
do
expect
(
page
).
to
have_content
(
'cross-build'
)
expect
(
page
).
to
have_content
(
bridge
.
id
)
end
end
end
describe
'GET /:project/pipelines/:id/builds'
do
describe
'GET /:project/pipelines/:id/builds'
do
include_context
'pipeline builds'
include_context
'pipeline builds'
...
...
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