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
a20f9796
Commit
a20f9796
authored
Jul 09, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tests explicitly fabricate resources via API
parent
db1b15e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb
...atures/browser_ui/1_manage/group/transfer_project_spec.rb
+3
-3
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
...es/browser_ui/1_manage/project/add_project_member_spec.rb
+1
-1
No files found.
qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb
View file @
a20f9796
...
...
@@ -7,15 +7,15 @@ module QA
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
source_group
=
Resource
::
Group
.
fabricate!
do
|
group
|
source_group
=
Resource
::
Group
.
fabricate
_via_api
!
do
|
group
|
group
.
path
=
'source-group'
end
target_group
=
Resource
::
Group
.
fabricate!
do
|
group
|
target_group
=
Resource
::
Group
.
fabricate
_via_api
!
do
|
group
|
group
.
path
=
'target-group'
end
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
=
Resource
::
Project
.
fabricate
_via_api
!
do
|
project
|
project
.
group
=
source_group
project
.
name
=
'transfer-project'
project
.
initialize_with_readme
=
true
...
...
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
View file @
a20f9796
...
...
@@ -9,7 +9,7 @@ module QA
user
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
project
=
Resource
::
Project
.
fabricate!
do
|
resource
|
project
=
Resource
::
Project
.
fabricate
_via_api
!
do
|
resource
|
resource
.
name
=
'add-member-project'
end
project
.
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