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
52a21137
Commit
52a21137
authored
Aug 05, 2020
by
sfang97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change spec to look for right class
parent
ad21b195
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
app/views/projects/_visibility_modal.html.haml
app/views/projects/_visibility_modal.html.haml
+3
-4
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+1
-1
app/views/shared/_confirm_modal.html.haml
app/views/shared/_confirm_modal.html.haml
+1
-1
spec/features/projects/user_changes_project_visibility_spec.rb
...features/projects/user_changes_project_visibility_spec.rb
+2
-2
No files found.
app/views/projects/_visibility_modal.html.haml
View file @
52a21137
...
...
@@ -24,7 +24,6 @@
.form-group
=
text_field_tag
'confirm_path_input'
,
''
,
class:
'form-control js-confirm-danger-input qa-confirm-input'
.form-actions.clearfix
.float-right
%button
.btn.btn-default
{
type:
"button"
,
"data-dismiss"
:
"modal"
}
%button
.btn.btn-default.gl-display-flex.gl-justify-content-end
{
type:
"button"
,
"data-dismiss"
:
"modal"
}
=
_
(
'Cancel'
)
=
submit_tag
_
(
'Reduce project visibility'
),
class:
"btn btn-danger js-confirm-danger-submit qa-confirm-button"
,
disabled:
true
app/views/projects/edit.html.haml
View file @
52a21137
...
...
@@ -21,7 +21,7 @@
%input
{
name:
'update_section'
,
type:
'hidden'
,
value:
'js-shared-permissions'
}
%template
.js-project-permissions-form-data
{
type:
"application/json"
}=
project_permissions_panel_data_json
(
@project
)
.js-project-permissions-form
-
if
show_visibility_confirm_modal?
(
@project
)
-
if
!
show_visibility_confirm_modal?
(
@project
)
=
render
"visibility_modal"
.gl-display-flex.gl-justify-content-end
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success
#{
(
'js-confirm-danger'
if
show_visibility_confirm_modal?
(
@project
))
}
"
,
data:
{
qa_selector:
'visibility_features_permissions_save_button'
,
check_field_name:
(
"project[visibility_level]"
if
show_visibility_confirm_modal?
(
@project
)),
check_compare_value:
@project
.
visibility_level
}
...
...
app/views/shared/_confirm_modal.html.haml
View file @
52a21137
...
...
@@ -17,5 +17,5 @@
.form-group
=
text_field_tag
'confirm_name_input'
,
''
,
class:
'form-control js-confirm-danger-input qa-confirm-input'
.form-actions
.form-actions
.gl-display-flex.gl-justify-content-end
=
submit_tag
_
(
'Confirm'
),
class:
"btn btn-danger js-confirm-danger-submit qa-confirm-button"
spec/features/projects/user_changes_project_visibility_spec.rb
View file @
52a21137
...
...
@@ -22,10 +22,10 @@ RSpec.describe 'User changes public project visibility', :js do
click_button
'Save changes'
end
find
(
'.js-confirm-danger-input'
).
send_keys
(
project
.
path_with_namespac
e
)
find
(
'.js-confirm-danger-input'
).
send_keys
(
project
.
nam
e
)
page
.
within
'.modal'
do
click_button
'
Reduce project visibility
'
click_button
'
Confirm
'
end
expect
(
page
).
to
have_text
(
"Project '
#{
project
.
name
}
' was successfully updated"
)
...
...
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