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
4f12ef0f
Commit
4f12ef0f
authored
Mar 22, 2019
by
Sanad Liaquat
Committed by
Luke Bennett
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project settings qa selectors
Additionally fixes geo rename test.
parent
3801e9da
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
52 deletions
+44
-52
app/assets/javascripts/pages/projects/edit/index.js
app/assets/javascripts/pages/projects/edit/index.js
+1
-1
app/views/projects/settings/_general.html.haml
app/views/projects/settings/_general.html.haml
+2
-2
ee/app/views/projects/_merge_request_approvals_settings.html.haml
...iews/projects/_merge_request_approvals_settings.html.haml
+1
-1
ee/app/views/projects/settings/_default_issue_template.html.haml
...views/projects/settings/_default_issue_template.html.haml
+1
-1
ee/changelogs/unreleased/proj-settings-ok-leftovers.yml
ee/changelogs/unreleased/proj-settings-ok-leftovers.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+5
-25
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
qa/qa/specs/features/browser_ui/ee_geo/rename_replication_spec.rb
...ecs/features/browser_ui/ee_geo/rename_replication_spec.rb
+4
-1
No files found.
app/assets/javascripts/pages/projects/edit/index.js
View file @
4f12ef0f
...
...
@@ -20,7 +20,7 @@ document.addEventListener('DOMContentLoaded', () => {
dirtySubmitFactory
(
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/settings/_general.html.haml
View file @
4f12ef0f
...
...
@@ -7,7 +7,7 @@
.form-group.col-md-5
=
f
.
label
:name
,
class:
'label-bold'
,
for:
'project_name_edit'
do
=
_
(
'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
=
f
.
label
:id
,
class:
'label-bold'
do
...
...
@@ -39,4 +39,4 @@
=
link_to
_
(
'Remove avatar'
),
project_avatar_path
(
@project
),
data:
{
confirm:
_
(
'Avatar will be removed. Are you sure?'
)},
method: :delete
,
class:
'btn btn-link'
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success mt-4"
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success mt-4
qa-save-naming-topics-avatar-button
"
ee/app/views/projects/_merge_request_approvals_settings.html.haml
View file @
4f12ef0f
...
...
@@ -9,7 +9,7 @@
=
link_to
_
(
"Learn more about approvals."
),
help_page_path
(
"user/project/merge_requests/merge_request_approvals"
),
target:
'_blank'
.settings-content
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
class:
"merge-request-approval-settings-form"
},
authenticity_token:
true
do
|
f
|
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
class:
"merge-request-approval-settings-form
js-mr-approvals-form
"
},
authenticity_token:
true
do
|
f
|
%input
{
name:
'update_section'
,
type:
'hidden'
,
value:
'js-merge-request-approval-settings'
}
=
render
'projects/merge_request_approvals_settings_form'
,
form:
f
,
project:
@project
=
f
.
submit
_
(
"Save changes"
),
class:
"btn btn-success"
ee/app/views/projects/settings/_default_issue_template.html.haml
View file @
4f12ef0f
...
...
@@ -3,7 +3,7 @@
%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.btn-default.js-settings-toggle
{
type:
'button'
}
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%button
.btn.btn-default.js-settings-toggle
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Set a default template for issue descriptions.'
)
.settings-content
...
...
ee/changelogs/unreleased/proj-settings-ok-leftovers.yml
0 → 100644
View file @
4f12ef0f
---
title
:
Improve project settings page layout and UX
merge_request
:
10388
author
:
type
:
other
locale/gitlab.pot
View file @
4f12ef0f
...
...
@@ -2103,9 +2103,6 @@ msgstr ""
msgid "Choose between <code>clone</code> or <code>fetch</code> to get the recent application code"
msgstr ""
msgid "Choose file..."
msgstr ""
msgid "Choose file…"
msgstr ""
...
...
@@ -2241,12 +2238,9 @@ msgstr ""
msgid "CiVariable|Validation failed"
msgstr ""
<<<<<<< HEAD
=======
msgid "Classification Label (optional)"
msgstr ""
>>>>>>> Improve project settings page
msgid "ClassificationLabelUnavailable|is unavailable: %{reason}"
msgstr ""
...
...
@@ -3452,12 +3446,9 @@ msgstr ""
msgid "Default classification label"
msgstr ""
<<<<<<< HEAD
=======
msgid "Default description template for issues"
msgstr ""
>>>>>>> Improve project settings page
msgid "Default first day of the week"
msgstr ""
...
...
@@ -3847,11 +3838,10 @@ msgstr ""
msgid "Download asset"
msgstr ""
<<<<<<< HEAD
msgid "Download license"
=======
msgid "Download export"
>>>>>>> Improve project settings page
msgstr ""
msgid "Download license"
msgstr ""
msgid "Download source code"
...
...
@@ -4508,12 +4498,6 @@ msgstr ""
msgid "External authorization request timeout"
msgstr ""
<<<<<<< HEAD
msgid "ExternalAuthorizationService|Classification Label"
msgstr ""
=======
>>>>>>> Improve project settings page
msgid "ExternalAuthorizationService|Classification label"
msgstr ""
...
...
@@ -8608,9 +8592,6 @@ msgstr ""
msgid "Project avatar"
msgstr ""
msgid "Project avatar in repository: %{link}"
msgstr ""
msgid "Project configuration, including services"
msgstr ""
...
...
@@ -9183,11 +9164,10 @@ msgstr ""
msgid "Removing group will cause all child projects and resources to be removed."
msgstr ""
<<<<<<< HEAD
msgid "Removing license…"
=======
msgstr ""
msgid "Removing the project will delete its repository and all related resources including issues, merge requests etc."
>>>>>>> Improve project settings page
msgstr ""
msgid "Rename"
...
...
qa/qa/page/project/settings/advanced.rb
View file @
4f12ef0f
...
...
@@ -4,27 +4,21 @@ module QA
module
Settings
class
Advanced
<
Page
::
Base
view
'app/views/projects/edit.html.haml'
do
element
:project_path_field
,
'text_field :path'
# rubocop:disable QA/ElementWithPattern
element
:project_name_field
,
'text_field :name'
# rubocop:disable QA/ElementWithPattern
element
:rename_project_button
,
"submit 'Rename project'"
# rubocop:disable QA/ElementWithPattern
element
:project_path_field
element
:change_path_button
end
def
rename_to
(
path
)
fill_project_name
(
path
)
def
update_project_path_to
(
path
)
fill_project_path
(
path
)
rename_project!
click_change_path_button
end
def
fill_project_path
(
path
)
fill_
in
:project_path
,
with:
path
fill_
element
:project_path_field
,
path
end
def
fill_project_name
(
name
)
fill_in
:project_name
,
with:
name
end
def
rename_project!
click_on
'Rename project'
def
click_change_path_button
click_element
:change_path_button
end
end
end
...
...
qa/qa/page/project/settings/common.rb
View file @
4f12ef0f
...
...
@@ -4,14 +4,6 @@ module QA
module
Settings
module
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
...
...
qa/qa/page/project/settings/main.rb
View file @
4f12ef0f
...
...
@@ -9,6 +9,24 @@ module QA
element
:advanced_settings
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
)
expand_section
(
:advanced_settings
)
do
Advanced
.
perform
(
&
block
)
...
...
qa/qa/specs/features/browser_ui/ee_geo/rename_replication_spec.rb
View file @
4f12ef0f
...
...
@@ -34,8 +34,11 @@ module QA
geo_project_renamed
=
"geo-after-rename-
#{
SecureRandom
.
hex
(
8
)
}
"
Page
::
Project
::
Settings
::
Main
.
perform
do
|
settings
|
settings
.
rename_project_to
(
geo_project_renamed
)
expect
(
page
).
to
have_content
"Project '
#{
geo_project_renamed
}
' was successfully updated."
settings
.
expand_advanced_settings
do
|
page
|
page
.
rename
_to
(
geo_project_renamed
)
page
.
update_project_path
_to
(
geo_project_renamed
)
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