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
Tatuya Kamada
gitlab-ce
Commits
aa8cb00b
Commit
aa8cb00b
authored
Aug 12, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a feature tests to check if a view can be rendered properly
parent
cae0fa7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
spec/features/merge_requests/pipelines_spec.rb
spec/features/merge_requests/pipelines_spec.rb
+48
-0
No files found.
spec/features/merge_requests/pipelines_spec.rb
0 → 100644
View file @
aa8cb00b
require
'spec_helper'
feature
'Pipelines for Merge Requests'
,
feature:
true
,
js:
true
do
include
WaitForAjax
given
(
:user
)
{
create
(
:user
)
}
given
(
:merge_request
)
{
create
(
:merge_request
)
}
given
(
:project
)
{
merge_request
.
target_project
}
before
do
project
.
team
<<
[
user
,
:master
]
login_as
user
end
context
'with pipelines'
do
let!
(
:pipeline
)
do
create
(
:ci_empty_pipeline
,
project:
merge_request
.
source_project
,
ref:
merge_request
.
source_branch
,
sha:
merge_request
.
diff_head_sha
)
end
before
do
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
scenario
'does click a pipeline tab and sees a list of pipelines'
do
page
.
within
(
'.merge-request-tabs'
)
do
click_link
(
'Pipelines'
)
end
wait_for_ajax
expect
(
page
).
to
have_selector
(
'.pipeline-actions'
)
end
end
context
'without pipelines'
do
before
do
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
scenario
'does not find a pipeline link'
do
page
.
within
(
'.merge-request-tabs'
)
do
expect
(
page
).
not_to
have_link
(
'Pipelines'
)
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