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
c1de6bd0
Commit
c1de6bd0
authored
Apr 08, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
f02d117b
ef278f6e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
77 deletions
+91
-77
app/assets/javascripts/pages/projects/forks/new/components/fork_form.vue
...scripts/pages/projects/forks/new/components/fork_form.vue
+2
-0
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
...d/on_demand_scans/components/on_demand_scans_form_spec.js
+67
-67
qa/qa/page/project/fork/new.rb
qa/qa/page/project/fork/new.rb
+12
-2
qa/qa/resource/fork.rb
qa/qa/resource/fork.rb
+7
-3
qa/qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb
...reate/merge_request/merge_merge_request_from_fork_spec.rb
+3
-5
No files found.
app/assets/javascripts/pages/projects/forks/new/components/fork_form.vue
View file @
c1de6bd0
...
...
@@ -218,6 +218,7 @@ export default {
id=
"fork-url"
v-model=
"selectedNamespace"
data-testid=
"fork-url-input"
data-qa-selector=
"fork_namespace_dropdown"
required
>
<
template
slot=
"first"
>
...
...
@@ -291,6 +292,7 @@ export default {
category=
"primary"
variant=
"confirm"
data-testid=
"submit-button"
data-qa-selector=
"fork_project_button"
:loading=
"isSaving"
>
{{ s__('ForkProject|Fork project') }}
...
...
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
View file @
c1de6bd0
This diff is collapsed.
Click to expand it.
qa/qa/page/project/fork/new.rb
View file @
c1de6bd0
...
...
@@ -13,8 +13,18 @@ module QA
element
:fork_groups_list_search_field
end
def
choose_namespace
(
namespace
=
Runtime
::
Namespace
.
path
)
click_element
(
:fork_namespace_button
,
name:
namespace
)
view
'app/assets/javascripts/pages/projects/forks/new/components/fork_form.vue'
do
element
:fork_namespace_dropdown
element
:fork_project_button
end
def
fork_project
(
namespace
=
Runtime
::
Namespace
.
path
)
if
has_element?
(
:fork_namespace_button
,
wait:
0
)
click_element
(
:fork_namespace_button
,
name:
namespace
)
else
select_element
(
:fork_namespace_dropdown
,
namespace
)
click_element
(
:fork_project_button
)
end
end
def
search_for_group
(
group_name
)
...
...
qa/qa/resource/fork.rb
View file @
c1de6bd0
...
...
@@ -3,6 +3,8 @@
module
QA
module
Resource
class
Fork
<
Base
attr_accessor
:namespace_path
attribute
:name
do
upstream
.
name
end
...
...
@@ -31,6 +33,8 @@ module QA
def
fabricate!
populate
(
:upstream
,
:user
)
namespace_path
||=
user
.
name
# Sign out as admin and sign is as the fork user
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
...
...
@@ -43,11 +47,11 @@ module QA
Page
::
Project
::
Show
.
perform
(
&
:fork_project
)
Page
::
Project
::
Fork
::
New
.
perform
do
|
fork_new
|
fork_new
.
choose_namespace
(
user
.
name
)
fork_new
.
fork_project
(
namespace_path
)
end
Page
::
Layout
::
Banner
.
perform
do
|
banner
|
banner
.
has_notice?
(
'The project was successfully forked.'
)
Page
::
Project
::
Show
.
perform
do
|
project_page
|
raise
ResourceFabricationFailedError
,
"Forking failed!"
unless
project_page
.
forked_from?
(
upstream
.
name
)
end
populate
(
:project
)
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb
View file @
c1de6bd0
...
...
@@ -2,14 +2,12 @@
module
QA
RSpec
.
describe
'Create'
do
describe
'Merge request creation from fork'
do
let!
(
:merge_request
)
do
Resource
::
MergeRequestFromFork
.
fabricate_via_browser_ui!
do
|
merge_request
|
describe
'Merge request creation from fork'
,
:smoke
do
it
'can merge feature branch fork to mainline'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1701'
do
merge_request
=
Resource
::
MergeRequestFromFork
.
fabricate_via_browser_ui!
do
|
merge_request
|
merge_request
.
fork_branch
=
'feature-branch'
end
end
it
'can merge feature branch fork to mainline'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1701'
do
Flow
::
Login
.
while_signed_in
do
merge_request
.
visit!
...
...
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