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
1c73b764
Commit
1c73b764
authored
Feb 07, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature spec for a new merge request with pipeline
parent
25c1f051
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
spec/features/merge_requests/create_new_mr_spec.rb
spec/features/merge_requests/create_new_mr_spec.rb
+20
-0
No files found.
spec/features/merge_requests/create_new_mr_spec.rb
View file @
1c73b764
...
@@ -84,4 +84,24 @@ feature 'Create New Merge Request', feature: true, js: true do
...
@@ -84,4 +84,24 @@ feature 'Create New Merge Request', feature: true, js: true do
expect
(
page
).
not_to
have_selector
(
'#error_explanation'
)
expect
(
page
).
not_to
have_selector
(
'#error_explanation'
)
expect
(
page
).
not_to
have_content
(
'The form contains the following error'
)
expect
(
page
).
not_to
have_content
(
'The form contains the following error'
)
end
end
context
'when a new merge request has a pipeline'
do
let!
(
:pipeline
)
do
create
(
:ci_pipeline
,
sha:
project
.
commit
(
'fix'
).
id
,
ref:
'fix'
,
project:
project
)
end
it
'shows pipelines for a new merge request'
do
visit
new_namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request:
{
target_branch:
'master'
,
source_branch:
'fix'
})
page
.
within
(
'.merge-request'
)
do
click_link
'Pipelines'
expect
(
page
).
to
have_content
"#
#{
pipeline
.
id
}
"
end
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