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
8359fece
Commit
8359fece
authored
Jul 17, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix & Un-quarantine project templates spec
Also Add steps to validate that template selection succeeded.
parent
391dfe76
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
qa/qa/ee/page/admin/settings/templates.rb
qa/qa/ee/page/admin/settings/templates.rb
+8
-0
qa/qa/ee/page/group/settings/general.rb
qa/qa/ee/page/group/settings/general.rb
+8
-0
qa/qa/page/component/select2.rb
qa/qa/page/component/select2.rb
+4
-0
qa/qa/specs/features/browser_ui/1_manage/project/ee_project_templates_spec.rb
.../browser_ui/1_manage/project/ee_project_templates_spec.rb
+13
-2
No files found.
qa/qa/ee/page/admin/settings/templates.rb
View file @
8359fece
...
...
@@ -14,6 +14,14 @@ module QA
element
:save_changes_button
end
def
current_custom_project_template
expand_section
(
:custom_project_template_section
)
within_element
(
:custom_project_template_select
)
do
current_selection
end
end
def
choose_custom_project_template
(
path
)
expand_section
(
:custom_project_template_section
)
...
...
qa/qa/ee/page/group/settings/general.rb
View file @
8359fece
...
...
@@ -15,6 +15,14 @@ module QA
element
:save_changes_button
end
def
current_custom_project_template
expand_section
(
:custom_project_templates
)
within_element
(
:custom_project_template_select
)
do
current_selection
end
end
def
choose_custom_project_template
(
path
)
expand_section
(
:custom_project_templates
)
...
...
qa/qa/page/component/select2.rb
View file @
8359fece
...
...
@@ -8,6 +8,10 @@ module QA
find
(
'.select2-result-label'
,
text:
item_text
,
match: :prefer_exact
).
click
end
def
current_selection
find
(
'.select2-chosen'
).
text
end
def
clear_current_selection_if_present
if
has_css?
(
'a > abbr.select2-search-choice-close'
,
wait:
1.0
)
find
(
'a > abbr.select2-search-choice-close'
).
click
...
...
qa/qa/specs/features/browser_ui/1_manage/project/ee_project_templates_spec.rb
View file @
8359fece
...
...
@@ -2,8 +2,7 @@
require
'securerandom'
module
QA
# Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/61
context
:manage
,
:quarantine
do
context
:manage
do
describe
'Project templates'
do
before
(
:all
)
do
@files
=
[
...
...
@@ -56,6 +55,12 @@ module QA
page
.
choose_custom_project_template
(
"
#{
@template_container_group_name
}
"
)
end
Page
::
Admin
::
Menu
.
perform
(
&
:go_to_template_settings
)
EE
::
Page
::
Admin
::
Settings
::
Templates
.
perform
do
|
page
|
expect
(
page
.
current_custom_project_template
).
to
include
@template_container_group_name
end
group
=
Resource
::
Group
.
fabricate_via_api!
group
.
visit!
...
...
@@ -100,6 +105,12 @@ module QA
settings
.
choose_custom_project_template
(
"
#{
@template_container_group_name
}
"
)
end
Page
::
Project
::
Menu
.
perform
(
&
:click_settings
)
EE
::
Page
::
Group
::
Settings
::
General
.
perform
do
|
settings
|
expect
(
settings
.
current_custom_project_template
).
to
include
@template_container_group_name
end
group
=
Resource
::
Group
.
fabricate_via_api!
group
.
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