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
d59aa8da
Commit
d59aa8da
authored
Mar 25, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
d2b41267
02d5d2bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
+30
-26
qa/qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
...er_ui/3_create/merge_request/create_merge_request_spec.rb
+30
-26
No files found.
qa/qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
View file @
d59aa8da
...
@@ -3,7 +3,29 @@
...
@@ -3,7 +3,29 @@
module
QA
module
QA
context
'Create'
do
context
'Create'
do
describe
'Merge request creation'
do
describe
'Merge request creation'
do
it
'user creates a new merge request'
do
it
'user creates a new merge request'
,
:smoke
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
current_project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
'project-with-merge-request'
end
merge_request_title
=
'This is a merge request'
merge_request_description
=
'Great feature'
Resource
::
MergeRequest
.
fabricate!
do
|
merge_request
|
merge_request
.
title
=
merge_request_title
merge_request
.
description
=
merge_request_description
merge_request
.
project
=
current_project
end
expect
(
page
).
to
have_content
(
merge_request_title
)
expect
(
page
).
to
have_content
(
merge_request_description
)
expect
(
page
).
to
have_content
(
/Opened [\w\s]+ ago/
)
end
it
'user creates a new merge request with a milestone and label'
do
gitlab_account_username
=
"@
#{
Runtime
::
User
.
username
}
"
gitlab_account_username
=
"@
#{
Runtime
::
User
.
username
}
"
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
...
@@ -24,9 +46,12 @@ module QA
...
@@ -24,9 +46,12 @@ module QA
label
.
description
=
'Merge Request label'
label
.
description
=
'Merge Request label'
end
end
merge_request_title
=
'This is a merge request with a milestone and a label'
merge_request_description
=
'Great feature with milestone'
Resource
::
MergeRequest
.
fabricate!
do
|
merge_request
|
Resource
::
MergeRequest
.
fabricate!
do
|
merge_request
|
merge_request
.
title
=
'This is a merge request with a milestone'
merge_request
.
title
=
merge_request_title
merge_request
.
description
=
'Great feature with milestone'
merge_request
.
description
=
merge_request_description
merge_request
.
project
=
current_project
merge_request
.
project
=
current_project
merge_request
.
milestone
=
current_milestone
merge_request
.
milestone
=
current_milestone
merge_request
.
assignee
=
'me'
merge_request
.
assignee
=
'me'
...
@@ -34,8 +59,8 @@ module QA
...
@@ -34,8 +59,8 @@ module QA
end
end
Page
::
MergeRequest
::
Show
.
perform
do
|
merge_request
|
Page
::
MergeRequest
::
Show
.
perform
do
|
merge_request
|
expect
(
merge_request
).
to
have_content
(
'This is a merge request with a milestone'
)
expect
(
merge_request
).
to
have_content
(
merge_request_title
)
expect
(
merge_request
).
to
have_content
(
'Great feature with milestone'
)
expect
(
merge_request
).
to
have_content
(
merge_request_description
)
expect
(
merge_request
).
to
have_content
(
/Opened [\w\s]+ ago/
)
expect
(
merge_request
).
to
have_content
(
/Opened [\w\s]+ ago/
)
expect
(
merge_request
).
to
have_assignee
(
gitlab_account_username
)
expect
(
merge_request
).
to
have_assignee
(
gitlab_account_username
)
expect
(
merge_request
).
to
have_label
(
new_label
.
title
)
expect
(
merge_request
).
to
have_label
(
new_label
.
title
)
...
@@ -47,25 +72,4 @@ module QA
...
@@ -47,25 +72,4 @@ module QA
end
end
end
end
end
end
describe
'creates a merge request'
,
:smoke
do
it
'user creates a new merge request'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
current_project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
'project-with-merge-request'
end
Resource
::
MergeRequest
.
fabricate!
do
|
merge_request
|
merge_request
.
title
=
'This is a merge request'
merge_request
.
description
=
'Great feature'
merge_request
.
project
=
current_project
end
expect
(
page
).
to
have_content
(
'This is a merge request'
)
expect
(
page
).
to
have_content
(
'Great feature'
)
expect
(
page
).
to
have_content
(
/Opened [\w\s]+ ago/
)
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