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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
e67ddcb3
Commit
e67ddcb3
authored
Oct 06, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up QA::Page::Dashboard::Groups a bit
parent
9972b0e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
qa/qa/page/dashboard/groups.rb
qa/qa/page/dashboard/groups.rb
+16
-11
No files found.
qa/qa/page/dashboard/groups.rb
View file @
e67ddcb3
...
...
@@ -15,23 +15,23 @@ module QA
end
def
has_test_namespace?
filter_by_name
(
Runtime
::
N
amespace
.
name
)
filter_by_name
(
n
amespace
.
name
)
page
.
has_link?
(
Runtime
::
N
amespace
.
name
)
page
.
has_link?
(
n
amespace
.
name
)
end
def
has_sandbox?
filter_by_name
(
Runtime
::
N
amespace
.
sandbox_name
)
filter_by_name
(
n
amespace
.
sandbox_name
)
page
.
has_link?
(
Runtime
::
N
amespace
.
sandbox_name
)
page
.
has_link?
(
n
amespace
.
sandbox_name
)
end
def
go_to_test_namespace
click_link
Runtime
::
N
amespace
.
name
click_link
n
amespace
.
name
end
def
go_to_sandbox
click_link
Runtime
::
N
amespace
.
sandbox_name
click_link
n
amespace
.
sandbox_name
end
def
create_group
(
group_name
,
group_description
)
...
...
@@ -49,12 +49,17 @@ module QA
end
def
prepare_test_namespace
return
click_link
(
Runtime
::
Namespace
.
name
)
if
has_test_namespace?
if
has_test_namespace?
go_to_test_namespace
else
create_group
(
namespace
.
name
,
"QA test run at
#{
namespace
.
time
}
"
)
end
end
private
create_group
(
Runtime
::
Namespace
.
name
,
"QA test run at
#{
Runtime
::
Namespace
.
time
}
"
)
def
namespace
Runtime
::
Namespace
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