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
Boxiang Sun
gitlab-ce
Commits
e690fccb
Commit
e690fccb
authored
Mar 22, 2019
by
Sanad Liaquat
Committed by
Luke Bennett
Apr 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project settings qa selectors
Additionally fixes geo rename test.
parent
b7f76383
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
162 additions
and
2299 deletions
+162
-2299
app/assets/javascripts/pages/projects/edit/index.js
app/assets/javascripts/pages/projects/edit/index.js
+1
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+6
-6
app/views/projects/settings/_default_issue_template.html.haml
...views/projects/settings/_default_issue_template.html.haml
+0
-21
app/views/projects/settings/_general.html.haml
app/views/projects/settings/_general.html.haml
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+129
-2249
qa/qa/page/project/settings/advanced.rb
qa/qa/page/project/settings/advanced.rb
+7
-13
qa/qa/page/project/settings/common.rb
qa/qa/page/project/settings/common.rb
+0
-8
qa/qa/page/project/settings/main.rb
qa/qa/page/project/settings/main.rb
+18
-0
No files found.
app/assets/javascripts/pages/projects/edit/index.js
View file @
e690fccb
...
@@ -20,7 +20,7 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -20,7 +20,7 @@ document.addEventListener('DOMContentLoaded', () => {
dirtySubmitFactory
(
dirtySubmitFactory
(
document
.
querySelectorAll
(
document
.
querySelectorAll
(
'
.js-general-settings-form, .js-mr-settings-form, .js-
add-approver
-form
'
,
'
.js-general-settings-form, .js-mr-settings-form, .js-
mr-approvals
-form
'
,
),
),
);
);
});
});
app/views/projects/edit.html.haml
View file @
e690fccb
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
%section
.settings.general-settings.no-animate.expanded
#js-general-settings
%section
.settings.general-settings.no-animate.expanded
#js-general-settings
.settings-header
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Naming, topics, avatar'
)
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Naming, topics, avatar'
)
%button
.btn.js-settings-toggle
{
type:
'button'
}=
_
(
'Collapse'
)
%button
.btn.
btn-default.
js-settings-toggle
{
type:
'button'
}=
_
(
'Collapse'
)
%p
=
_
(
'Update your project name, topics, description and avatar.'
)
%p
=
_
(
'Update your project name, topics, description and avatar.'
)
.settings-content
=
render
'projects/settings/general'
.settings-content
=
render
'projects/settings/general'
%section
.settings.sharing-permissions.no-animate
#js-shared-permissions
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.sharing-permissions.no-animate
#js-shared-permissions
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Visibility, project features, permissions'
)
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Visibility, project features, permissions'
)
%button
.btn.js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%button
.btn.
btn-default.
js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions.'
)
%p
=
_
(
'Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions.'
)
.settings-content
.settings-content
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
%section
.qa-merge-request-settings.settings.merge-requests-feature.no-animate
#js-merge-request-settings
{
class:
[(
'expanded'
if
expanded
),
(
'hidden'
if
@project
.
project_feature
.
send
(
:merge_requests_access_level
)
==
0
)]
}
%section
.qa-merge-request-settings.settings.merge-requests-feature.no-animate
#js-merge-request-settings
{
class:
[(
'expanded'
if
expanded
),
(
'hidden'
if
@project
.
project_feature
.
send
(
:merge_requests_access_level
)
==
0
)]
}
.settings-header
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Merge requests'
)
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Merge requests'
)
%button
.btn.js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%button
.btn.
btn-default.
js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Choose your merge method, set up a default merge request description template.'
)
%p
=
_
(
'Choose your merge method, set up a default merge request description template.'
)
.settings-content
.settings-content
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
.settings-header
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
s_
(
'ProjectSettings|Badges'
)
=
s_
(
'ProjectSettings|Badges'
)
%button
.btn.js-settings-toggle
{
type:
'button'
}
%button
.btn.
btn-default.
js-settings-toggle
{
type:
'button'
}
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
%p
=
s_
(
'ProjectSettings|Customize your project badges.'
)
=
s_
(
'ProjectSettings|Customize your project badges.'
)
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
%section
.qa-advanced-settings.settings.advanced-settings.no-animate
#js-project-advanced-settings
{
class:
(
'expanded'
if
expanded
)
}
%section
.qa-advanced-settings.settings.advanced-settings.no-animate
#js-project-advanced-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Advanced'
)
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Advanced'
)
%button
.btn.js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%button
.btn.
btn-default.
js-settings-toggle
{
type:
'button'
}=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Housekeeping, export, path, transfer, remove, archive.'
)
%p
=
_
(
'Housekeeping, export, path, transfer, remove, archive.'
)
.settings-content
.settings-content
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
%li
=
_
(
'You will need to update your local repositories to point to the new location.'
)
%li
=
_
(
'You will need to update your local repositories to point to the new location.'
)
-
if
@project
.
deployment_platform
.
present?
-
if
@project
.
deployment_platform
.
present?
%li
=
_
(
'Your deployment services will be broken, you will need to manually fix the services after renaming.'
)
%li
=
_
(
'Your deployment services will be broken, you will need to manually fix the services after renaming.'
)
=
f
.
submit
_
(
'Change path'
),
class:
"btn btn-warning"
=
f
.
submit
_
(
'Change path'
),
class:
"btn btn-warning
qa-change-path-button
"
-
if
can?
(
current_user
,
:change_namespace
,
@project
)
-
if
can?
(
current_user
,
:change_namespace
,
@project
)
.sub-section
.sub-section
...
...
app/views/projects/settings/_default_issue_template.html.haml
deleted
100644 → 0
View file @
b7f76383
-
if
@project
.
feature_available?
(
:issuable_default_templates
)
-
expanded
=
Rails
.
env
.
test?
%section
.settings.issues-feature.no-animate
#js-issue-settings
{
class:
[(
'expanded'
if
expanded
),
(
'hidden'
if
@project
.
project_feature
.
send
(
:issues_access_level
)
==
0
)]
}
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Default issue template'
)
%button
.btn.js-settings-toggle
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Set a default template for issue descriptions.'
)
.settings-content
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
multipart:
true
,
class:
"issue-settings-form"
},
authenticity_token:
true
do
|
f
|
%input
{
type:
'hidden'
,
name:
'update_section'
,
value:
'js-issue-settings'
}
.row
.form-group.col-md-9
=
f
.
label
:issues_template
,
class:
'label-bold'
do
=
_
(
'Default description template for issues'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/project/description_templates'
,
anchor:
'setting-a-default-template-for-issues-and-merge-requests'
),
target:
'_blank'
=
f
.
text_area
:issues_template
,
class:
"form-control"
,
rows:
3
.text-secondary
-
link_start
=
'<a href="%{url}" target="_blank" rel="noopener noreferrer">'
.
html_safe
%
{
url:
help_page_path
(
'user/markdown'
)
}
=
_
(
'Description parsed with %{link_start}GitLab Flavored Markdown%{link_end}'
).
html_safe
%
{
link_start:
link_start
,
link_end:
'</a>'
.
html_safe
}
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success"
app/views/projects/settings/_general.html.haml
View file @
e690fccb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.form-group.col-md-5
.form-group.col-md-5
=
f
.
label
:name
,
class:
'label-bold'
,
for:
'project_name_edit'
do
=
f
.
label
:name
,
class:
'label-bold'
,
for:
'project_name_edit'
do
=
_
(
'Project name'
)
=
_
(
'Project name'
)
=
f
.
text_field
:name
,
class:
"form-control"
,
id:
"project_name_edit"
=
f
.
text_field
:name
,
class:
'form-control qa-project-name-field'
,
id:
"project_name_edit"
.form-group.col-md-7
.form-group.col-md-7
=
f
.
label
:id
,
class:
'label-bold'
do
=
f
.
label
:id
,
class:
'label-bold'
do
...
...
locale/gitlab.pot
View file @
e690fccb
This diff is collapsed.
Click to expand it.
qa/qa/page/project/settings/advanced.rb
View file @
e690fccb
...
@@ -4,27 +4,21 @@ module QA
...
@@ -4,27 +4,21 @@ module QA
module
Settings
module
Settings
class
Advanced
<
Page
::
Base
class
Advanced
<
Page
::
Base
view
'app/views/projects/edit.html.haml'
do
view
'app/views/projects/edit.html.haml'
do
element
:project_path_field
,
'text_field :path'
# rubocop:disable QA/ElementWithPattern
element
:project_path_field
element
:project_name_field
,
'text_field :name'
# rubocop:disable QA/ElementWithPattern
element
:change_path_button
element
:rename_project_button
,
"submit 'Rename project'"
# rubocop:disable QA/ElementWithPattern
end
end
def
rename_to
(
path
)
def
update_project_path_to
(
path
)
fill_project_name
(
path
)
fill_project_path
(
path
)
fill_project_path
(
path
)
rename_project!
click_change_path_button
end
end
def
fill_project_path
(
path
)
def
fill_project_path
(
path
)
fill_
in
:project_path
,
with:
path
fill_
element
:project_path_field
,
path
end
end
def
fill_project_name
(
name
)
def
click_change_path_button
fill_in
:project_name
,
with:
name
click_element
:change_path_button
end
def
rename_project!
click_on
'Rename project'
end
end
end
end
end
end
...
...
qa/qa/page/project/settings/common.rb
View file @
e690fccb
...
@@ -4,14 +4,6 @@ module QA
...
@@ -4,14 +4,6 @@ module QA
module
Settings
module
Settings
module
Common
module
Common
include
QA
::
Page
::
Settings
::
Common
include
QA
::
Page
::
Settings
::
Common
def
self
.
included
(
base
)
base
.
class_eval
do
view
'app/views/projects/edit.html.haml'
do
element
:advanced_settings_expand
,
"= expanded ? 'Collapse' : 'Expand'"
# rubocop:disable QA/ElementWithPattern
end
end
end
end
end
end
end
end
end
...
...
qa/qa/page/project/settings/main.rb
View file @
e690fccb
...
@@ -9,6 +9,24 @@ module QA
...
@@ -9,6 +9,24 @@ module QA
element
:advanced_settings
element
:advanced_settings
end
end
view
'app/views/projects/settings/_general.html.haml'
do
element
:project_name_field
element
:save_naming_topics_avatar_button
end
def
rename_project_to
(
name
)
fill_project_name
(
name
)
click_save_changes
end
def
fill_project_name
(
name
)
fill_element
:project_name_field
,
name
end
def
click_save_changes
click_element
:save_naming_topics_avatar_button
end
def
expand_advanced_settings
(
&
block
)
def
expand_advanced_settings
(
&
block
)
expand_section
(
:advanced_settings
)
do
expand_section
(
:advanced_settings
)
do
Advanced
.
perform
(
&
block
)
Advanced
.
perform
(
&
block
)
...
...
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