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
348c6105
Commit
348c6105
authored
Oct 06, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add QA::Page::Group::New to fill in the "Create group" form
parent
e67ddcb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/page/dashboard/groups.rb
qa/qa/page/dashboard/groups.rb
+3
-13
qa/qa/page/group/new.rb
qa/qa/page/group/new.rb
+24
-0
No files found.
qa/qa.rb
View file @
348c6105
...
@@ -59,6 +59,7 @@ module QA
...
@@ -59,6 +59,7 @@ module QA
end
end
module
Group
module
Group
autoload
:New
,
'qa/page/group/new'
autoload
:Show
,
'qa/page/group/show'
autoload
:Show
,
'qa/page/group/show'
end
end
...
...
qa/qa/page/dashboard/groups.rb
View file @
348c6105
...
@@ -34,25 +34,15 @@ module QA
...
@@ -34,25 +34,15 @@ module QA
click_link
namespace
.
sandbox_name
click_link
namespace
.
sandbox_name
end
end
def
create_group
(
group_name
,
group_description
)
def
create_group
(
group_name
=
nil
,
group_description
=
nil
)
if
page
.
has_content?
(
'New Subgroup'
)
Page
::
Group
::
New
.
act
{
create_group
(
group_name
,
group_description
)
}
click_on
'New Subgroup'
else
click_on
'New group'
end
fill_in
'group_path'
,
with:
group_name
fill_in
'group_description'
,
with:
group_description
choose
'Private'
click_button
'Create group'
end
end
def
prepare_test_namespace
def
prepare_test_namespace
if
has_test_namespace?
if
has_test_namespace?
go_to_test_namespace
go_to_test_namespace
else
else
create_group
(
namespace
.
name
,
"QA test run at
#{
namespace
.
time
}
"
)
create_group
end
end
end
end
...
...
qa/qa/page/group/new.rb
0 → 100644
View file @
348c6105
module
QA
module
Page
module
Group
class
New
<
Page
::
Base
def
create_group
(
group_name
=
nil
,
group_description
=
nil
)
if
page
.
has_content?
(
'New Subgroup'
)
click_on
'New Subgroup'
else
click_on
'New group'
end
group_name
||=
Runtime
::
Namespace
.
name
group_description
||=
"QA test run at
#{
Runtime
::
Namespace
.
name
}
"
fill_in
'group_path'
,
with:
group_name
fill_in
'group_description'
,
with:
group_description
choose
'Private'
click_button
'Create group'
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