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
31b3d0ac
Commit
31b3d0ac
authored
Jul 22, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spam in issue creation
parent
8839e21d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+1
-1
qa/qa/resource/project.rb
qa/qa/resource/project.rb
+4
-2
qa/qa/specs/features/browser_ui/2_plan/ee_epic/epics_management_spec.rb
...atures/browser_ui/2_plan/ee_epic/epics_management_spec.rb
+7
-0
No files found.
qa/qa/page/project/new.rb
View file @
31b3d0ac
...
@@ -60,7 +60,7 @@ module QA
...
@@ -60,7 +60,7 @@ module QA
end
end
def
set_visibility
(
visibility
)
def
set_visibility
(
visibility
)
choose
visibility
choose
visibility
.
capitalize
end
end
def
click_github_link
def
click_github_link
...
...
qa/qa/resource/project.rb
View file @
31b3d0ac
...
@@ -8,6 +8,7 @@ module QA
...
@@ -8,6 +8,7 @@ module QA
include
Events
::
Project
include
Events
::
Project
attr_writer
:initialize_with_readme
attr_writer
:initialize_with_readme
attr_writer
:visibility
attribute
:id
attribute
:id
attribute
:name
attribute
:name
...
@@ -44,6 +45,7 @@ module QA
...
@@ -44,6 +45,7 @@ module QA
@standalone
=
false
@standalone
=
false
@description
=
'My awesome project'
@description
=
'My awesome project'
@initialize_with_readme
=
false
@initialize_with_readme
=
false
@visibility
=
'public'
end
end
def
name
=
(
raw_name
)
def
name
=
(
raw_name
)
...
@@ -60,7 +62,7 @@ module QA
...
@@ -60,7 +62,7 @@ module QA
page
.
choose_test_namespace
page
.
choose_test_namespace
page
.
choose_name
(
@name
)
page
.
choose_name
(
@name
)
page
.
add_description
(
@description
)
page
.
add_description
(
@description
)
page
.
set_visibility
(
'Public'
)
page
.
set_visibility
(
@visibility
)
page
.
enable_initialize_with_readme
if
@initialize_with_readme
page
.
enable_initialize_with_readme
if
@initialize_with_readme
page
.
create_new_project
page
.
create_new_project
end
end
...
@@ -88,7 +90,7 @@ module QA
...
@@ -88,7 +90,7 @@ module QA
post_body
=
{
post_body
=
{
name:
name
,
name:
name
,
description:
description
,
description:
description
,
visibility:
'public'
,
visibility:
@visibility
,
initialize_with_readme:
@initialize_with_readme
initialize_with_readme:
@initialize_with_readme
}
}
...
...
qa/qa/specs/features/browser_ui/2_plan/ee_epic/epics_management_spec.rb
View file @
31b3d0ac
...
@@ -96,7 +96,14 @@ module QA
...
@@ -96,7 +96,14 @@ module QA
end
end
def
create_issue_resource
def
create_issue_resource
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'project-for-issues'
project
.
description
=
'project for adding issues'
project
.
visibility
=
'private'
end
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
project
=
project
issue
.
title
=
'Issue created via API'
issue
.
title
=
'Issue created via API'
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