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
2e861da1
Commit
2e861da1
authored
Oct 26, 2020
by
Jeremy Elder
Committed by
Enrique Alcántara
Oct 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-check with check SVG
- This MR replaces the fa-check fontawesome icon with the GitLab check SVG.
parent
a66d7fa5
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
38 additions
and
39 deletions
+38
-39
app/assets/javascripts/notes/components/comment_form.vue
app/assets/javascripts/notes/components/comment_form.vue
+4
-3
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+2
-1
app/assets/stylesheets/framework/modal.scss
app/assets/stylesheets/framework/modal.scss
+0
-4
app/views/groups/_home_panel.html.haml
app/views/groups/_home_panel.html.haml
+2
-2
app/views/import/google_code/status.html.haml
app/views/import/google_code/status.html.haml
+1
-1
app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
+2
-2
app/views/projects/blob/viewers/_metrics_dashboard_yml.html.haml
...ws/projects/blob/viewers/_metrics_dashboard_yml.html.haml
+2
-2
app/views/projects/blob/viewers/_route_map.html.haml
app/views/projects/blob/viewers/_route_map.html.haml
+2
-2
app/views/projects/issues/_new_branch.html.haml
app/views/projects/issues/_new_branch.html.haml
+2
-2
app/views/projects/issues/export_csv/_modal.html.haml
app/views/projects/issues/export_csv/_modal.html.haml
+1
-1
app/views/projects/mirrors/_ssh_host_keys.html.haml
app/views/projects/mirrors/_ssh_host_keys.html.haml
+1
-1
app/views/shared/issuable/_close_reopen_report_toggle.html.haml
...ews/shared/issuable/_close_reopen_report_toggle.html.haml
+2
-2
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+2
-2
app/views/shared/notes/_comment_button.html.haml
app/views/shared/notes/_comment_button.html.haml
+2
-2
changelogs/unreleased/225956-replace-fa-check-icons-with-gitlab-svg-check-icon.yml
...956-replace-fa-check-icons-with-gitlab-svg-check-icon.yml
+5
-0
ee/app/assets/stylesheets/pages/projects.scss
ee/app/assets/stylesheets/pages/projects.scss
+0
-4
spec/features/issues/user_creates_branch_and_merge_request_spec.rb
...ures/issues/user_creates_branch_and_merge_request_spec.rb
+2
-2
spec/support/shared_examples/features/discussion_comments_shared_example.rb
...d_examples/features/discussion_comments_shared_example.rb
+6
-6
No files found.
app/assets/javascripts/notes/components/comment_form.vue
View file @
2e861da1
...
@@ -3,7 +3,7 @@ import $ from 'jquery';
...
@@ -3,7 +3,7 @@ import $ from 'jquery';
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
isEmpty
}
from
'
lodash
'
;
import
{
isEmpty
}
from
'
lodash
'
;
import
Autosize
from
'
autosize
'
;
import
Autosize
from
'
autosize
'
;
import
{
GlAlert
,
GlIntersperse
,
GlLink
,
GlSprintf
,
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlAlert
,
GlIntersperse
,
GlLink
,
GlSprintf
,
GlButton
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
TimelineEntryItem
from
'
~/vue_shared/components/notes/timeline_entry_item.vue
'
;
import
TimelineEntryItem
from
'
~/vue_shared/components/notes/timeline_entry_item.vue
'
;
import
{
deprecatedCreateFlash
as
Flash
}
from
'
../../flash
'
;
import
{
deprecatedCreateFlash
as
Flash
}
from
'
../../flash
'
;
...
@@ -38,6 +38,7 @@ export default {
...
@@ -38,6 +38,7 @@ export default {
GlIntersperse
,
GlIntersperse
,
GlLink
,
GlLink
,
GlSprintf
,
GlSprintf
,
GlIcon
,
},
},
mixins
:
[
issuableStateMixin
],
mixins
:
[
issuableStateMixin
],
props
:
{
props
:
{
...
@@ -457,7 +458,7 @@ export default {
...
@@ -457,7 +458,7 @@ export default {
class=
"btn btn-transparent"
class=
"btn btn-transparent"
@
click.prevent=
"setNoteType('comment')"
@
click.prevent=
"setNoteType('comment')"
>
>
<
i
aria-hidden=
"true"
class=
"fa fa-check icon"
></i
>
<
gl-icon
name=
"check"
class=
"icon"
/
>
<div
class=
"description"
>
<div
class=
"description"
>
<strong>
{{ __('Comment') }}
</strong>
<strong>
{{ __('Comment') }}
</strong>
<p>
<p>
...
@@ -476,7 +477,7 @@ export default {
...
@@ -476,7 +477,7 @@ export default {
data-qa-selector=
"discussion_menu_item"
data-qa-selector=
"discussion_menu_item"
@
click.prevent=
"setNoteType('discussion')"
@
click.prevent=
"setNoteType('discussion')"
>
>
<
i
aria-hidden=
"true"
class=
"fa fa-check icon"
></i
>
<
gl-icon
name=
"check"
class=
"icon"
/
>
<div
class=
"description"
>
<div
class=
"description"
>
<strong>
{{ __('Start thread') }}
</strong>
<strong>
{{ __('Start thread') }}
</strong>
<p>
{{ startDiscussionDescription }}
</p>
<p>
{{ startDiscussionDescription }}
</p>
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
2e861da1
...
@@ -407,7 +407,8 @@
...
@@ -407,7 +407,8 @@
}
}
}
}
&
.droplab-item-selected
i
{
&
.droplab-item-selected
i
,
&
.droplab-item-selected
svg
{
visibility
:
visible
;
visibility
:
visible
;
}
}
...
...
app/assets/stylesheets/framework/modal.scss
View file @
2e861da1
...
@@ -160,8 +160,4 @@ body.modal-open {
...
@@ -160,8 +160,4 @@ body.modal-open {
min-height
:
$modal-body-height
;
min-height
:
$modal-body-height
;
}
}
}
}
.checkmark
{
color
:
$green-400
;
}
}
}
app/views/groups/_home_panel.html.haml
View file @
2e861da1
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
%li
.droplab-item-selected.qa-new-project-option
{
role:
"button"
,
data:
{
value:
"new-project"
,
text:
new_project_label
}
}
%li
.droplab-item-selected.qa-new-project-option
{
role:
"button"
,
data:
{
value:
"new-project"
,
text:
new_project_label
}
}
.menu-item
.menu-item
.icon-container
.icon-container
=
icon
(
"check"
,
class:
"list-item-checkmark"
)
=
sprite_icon
(
"check"
,
css_
class:
"list-item-checkmark"
)
.description
.description
%strong
=
new_project_label
%strong
=
new_project_label
%span
=
s_
(
"GroupsTree|Create a project in this group."
)
%span
=
s_
(
"GroupsTree|Create a project in this group."
)
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
%li
.qa-new-subgroup-option
{
role:
"button"
,
data:
{
value:
"new-subgroup"
,
text:
new_subgroup_label
}
}
%li
.qa-new-subgroup-option
{
role:
"button"
,
data:
{
value:
"new-subgroup"
,
text:
new_subgroup_label
}
}
.menu-item
.menu-item
.icon-container
.icon-container
=
icon
(
"check"
,
class:
"list-item-checkmark"
)
=
sprite_icon
(
"check"
,
css_
class:
"list-item-checkmark"
)
.description
.description
%strong
=
new_subgroup_label
%strong
=
new_subgroup_label
%span
=
s_
(
"GroupsTree|Create a subgroup in this group."
)
%span
=
s_
(
"GroupsTree|Create a subgroup in this group."
)
...
...
app/views/import/google_code/status.html.haml
View file @
2e861da1
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
-
case
project
.
import_status
-
case
project
.
import_status
-
when
'finished'
-
when
'finished'
%span
%span
%i
.fa.fa-check
=
sprite_icon
(
'check'
)
=
_
(
"done"
)
=
_
(
"done"
)
-
when
'started'
-
when
'started'
=
loading_icon
=
loading_icon
...
...
app/views/projects/blob/viewers/_gitlab_ci_yml.html.haml
View file @
2e861da1
-
if
viewer
.
valid?
(
project:
@project
,
sha:
@commit
.
sha
,
user:
@current_user
)
-
if
viewer
.
valid?
(
project:
@project
,
sha:
@commit
.
sha
,
user:
@current_user
)
=
icon
(
'check fw
'
)
=
sprite_icon
(
'check
'
)
This GitLab CI configuration is valid.
This GitLab CI configuration is valid.
-
else
-
else
=
icon
(
'warning fw
'
)
=
sprite_icon
(
'warning-solid
'
)
This GitLab CI configuration is invalid:
This GitLab CI configuration is invalid:
=
viewer
.
validation_message
(
project:
@project
,
sha:
@commit
.
sha
,
user:
@current_user
)
=
viewer
.
validation_message
(
project:
@project
,
sha:
@commit
.
sha
,
user:
@current_user
)
...
...
app/views/projects/blob/viewers/_metrics_dashboard_yml.html.haml
View file @
2e861da1
-
if
viewer
.
valid?
-
if
viewer
.
valid?
=
icon
(
'check fw
'
)
=
sprite_icon
(
'check
'
)
=
_
(
'Metrics Dashboard YAML definition is valid.'
)
=
_
(
'Metrics Dashboard YAML definition is valid.'
)
-
else
-
else
=
icon
(
'warning fw
'
)
=
sprite_icon
(
'warning-solid
'
)
=
_
(
'Metrics Dashboard YAML definition is invalid:'
)
=
_
(
'Metrics Dashboard YAML definition is invalid:'
)
%ul
%ul
-
viewer
.
errors
.
each
do
|
error
|
-
viewer
.
errors
.
each
do
|
error
|
...
...
app/views/projects/blob/viewers/_route_map.html.haml
View file @
2e861da1
-
if
viewer
.
valid?
-
if
viewer
.
valid?
=
icon
(
'check fw
'
)
=
sprite_icon
(
'check
'
)
This Route Map is valid.
This Route Map is valid.
-
else
-
else
=
icon
(
'warning fw
'
)
=
sprite_icon
(
'warning-solid
'
)
This Route Map is invalid:
This Route Map is invalid:
=
viewer
.
validation_message
=
viewer
.
validation_message
...
...
app/views/projects/issues/_new_branch.html.haml
View file @
2e861da1
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
-
if
can_create_merge_request
-
if
can_create_merge_request
%li
.droplab-item-selected
{
role:
'button'
,
data:
{
value:
'create-mr'
,
text:
create_mr_text
}
}
%li
.droplab-item-selected
{
role:
'button'
,
data:
{
value:
'create-mr'
,
text:
create_mr_text
}
}
.menu-item.text-nowrap
.menu-item.text-nowrap
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
-
if
can_create_confidential_merge_request?
-
if
can_create_confidential_merge_request?
=
_
(
'Create confidential merge request and branch'
)
=
_
(
'Create confidential merge request and branch'
)
-
else
-
else
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
%li
{
class:
[
!
can_create_merge_request
&&
'droplab-item-selected'
],
role:
'button'
,
data:
{
value:
'create-branch'
,
text:
_
(
'Create branch'
)
}
}
%li
{
class:
[
!
can_create_merge_request
&&
'droplab-item-selected'
],
role:
'button'
,
data:
{
value:
'create-branch'
,
text:
_
(
'Create branch'
)
}
}
.menu-item
.menu-item
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
=
_
(
'Create branch'
)
=
_
(
'Create branch'
)
%li
.divider.droplab-item-ignore
%li
.divider.droplab-item-ignore
...
...
app/views/projects/issues/export_csv/_modal.html.haml
View file @
2e861da1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-
issues_count
=
issuables_count_for_state
(
:issues
,
params
[
:state
])
-
issues_count
=
issuables_count_for_state
(
:issues
,
params
[
:state
])
-
unless
issues_count
==
-
1
# The count timed out
-
unless
issues_count
==
-
1
# The count timed out
.modal-subheader
.modal-subheader
=
icon
(
'check'
,
{
class:
'checkmark'
}
)
=
sprite_icon
(
'check'
,
css_class:
'gl-text-green-400'
)
%strong
.gl-ml-3
%strong
.gl-ml-3
=
n_
(
'%d issue selected'
,
'%d issues selected'
,
issues_count
)
%
issues_count
=
n_
(
'%d issue selected'
,
'%d issues selected'
,
issues_count
)
%
issues_count
.modal-text
.modal-text
...
...
app/views/projects/mirrors/_ssh_host_keys.html.haml
View file @
2e861da1
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
%code
=
fp
.
fingerprint
%code
=
fp
.
fingerprint
-
if
verified_at
-
if
verified_at
.form-text.text-muted.js-fingerprint-verification
.form-text.text-muted.js-fingerprint-verification
%i
.fa.fa-check.fingerprint-verified
=
sprite_icon
(
'check'
,
css_class:
'gl-text-green-500'
)
Verified by
Verified by
-
if
verified_by
-
if
verified_by
=
link_to
verified_by
.
name
,
user_path
(
verified_by
)
=
link_to
verified_by
.
name
,
user_path
(
verified_by
)
...
...
app/views/shared/issuable/_close_reopen_report_toggle.html.haml
View file @
2e861da1
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
data:
{
text:
_
(
"Close %{display_issuable_type}"
)
%
{
display_issuable_type:
display_issuable_type
},
url:
close_issuable_path
(
issuable
),
data:
{
text:
_
(
"Close %{display_issuable_type}"
)
%
{
display_issuable_type:
display_issuable_type
},
url:
close_issuable_path
(
issuable
),
button_class:
"#{button_class} btn-close"
,
toggle_class:
"#{toggle_class} btn-close-color"
}
}
button_class:
"#{button_class} btn-close"
,
toggle_class:
"#{toggle_class} btn-close-color"
}
}
%button
.btn.btn-transparent
%button
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
.description
.description
%strong
.title
%strong
.title
=
_
(
'Close'
)
=
_
(
'Close'
)
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
data:
{
text:
_
(
"Reopen %{display_issuable_type}"
)
%
{
display_issuable_type:
display_issuable_type
},
url:
reopen_issuable_path
(
issuable
),
data:
{
text:
_
(
"Reopen %{display_issuable_type}"
)
%
{
display_issuable_type:
display_issuable_type
},
url:
reopen_issuable_path
(
issuable
),
button_class:
"#{button_class} btn-reopen"
,
toggle_class:
"#{toggle_class} btn-reopen-color"
}
}
button_class:
"#{button_class} btn-reopen"
,
toggle_class:
"#{toggle_class} btn-reopen-color"
}
}
%button
.btn.btn-transparent
%button
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
.description
.description
%strong
.title
%strong
.title
=
_
(
'Reopen'
)
=
_
(
'Reopen'
)
...
...
app/views/shared/members/_member.html.haml
View file @
2e861da1
...
@@ -105,12 +105,12 @@
...
@@ -105,12 +105,12 @@
-
if
member
.
can_approve?
-
if
member
.
can_approve?
=
link_to
polymorphic_path
([
:approve_access_request
,
member
]),
=
link_to
polymorphic_path
([
:approve_access_request
,
member
]),
method: :post
,
method: :post
,
class:
"btn btn-success align-self-center m-0 mb-2
#{
'mb-sm-0 ml-sm-2'
unless
force_mobile_view
}
"
,
class:
"btn btn-success
btn-icon gl-button
align-self-center m-0 mb-2
#{
'mb-sm-0 ml-sm-2'
unless
force_mobile_view
}
"
,
title:
_
(
'Grant access'
)
do
title:
_
(
'Grant access'
)
do
%span
{
class:
(
'd-block d-sm-none'
unless
force_mobile_view
)
}
%span
{
class:
(
'd-block d-sm-none'
unless
force_mobile_view
)
}
=
_
(
'Grant access'
)
=
_
(
'Grant access'
)
-
unless
force_mobile_view
-
unless
force_mobile_view
=
icon
(
'check inverse'
,
class:
'd-none d-sm-block'
)
=
sprite_icon
(
'check'
,
css_
class:
'd-none d-sm-block'
)
-
if
member
.
can_remove?
-
if
member
.
can_remove?
-
if
current_user
==
user
-
if
current_user
==
user
...
...
app/views/shared/notes/_comment_button.html.haml
View file @
2e861da1
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
%ul
#resolvable-comment-menu
.dropdown-menu.dropdown-open-top
{
data:
{
dropdown:
true
}
}
%ul
#resolvable-comment-menu
.dropdown-menu.dropdown-open-top
{
data:
{
dropdown:
true
}
}
%li
#comment
.droplab-item-selected
{
data:
{
value:
''
,
'submit-text'
=>
_
(
'Comment'
),
'close-text'
=>
_
(
"Comment & close %{noteable_name}"
)
%
{
noteable_name:
noteable_name
},
'reopen-text'
=>
_
(
"Comment & reopen %{noteable_name}"
)
%
{
noteable_name:
noteable_name
}
}
}
%li
#comment
.droplab-item-selected
{
data:
{
value:
''
,
'submit-text'
=>
_
(
'Comment'
),
'close-text'
=>
_
(
"Comment & close %{noteable_name}"
)
%
{
noteable_name:
noteable_name
},
'reopen-text'
=>
_
(
"Comment & reopen %{noteable_name}"
)
%
{
noteable_name:
noteable_name
}
}
}
%button
.btn.btn-transparent
%button
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
.description
.description
%strong
=
_
(
"Comment"
)
%strong
=
_
(
"Comment"
)
%p
%p
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
%li
#discussion
{
data:
{
value:
'DiscussionNote'
,
'submit-text'
=>
_
(
'Start thread'
),
'close-text'
=>
_
(
"Start thread & close %{noteable_name}"
)
%
{
noteable_name:
noteable_name
},
'reopen-text'
=>
_
(
"Start thread & reopen %{noteable_name}"
)
%
{
noteable_name:
noteable_name
}
}
}
%li
#discussion
{
data:
{
value:
'DiscussionNote'
,
'submit-text'
=>
_
(
'Start thread'
),
'close-text'
=>
_
(
"Start thread & close %{noteable_name}"
)
%
{
noteable_name:
noteable_name
},
'reopen-text'
=>
_
(
"Start thread & reopen %{noteable_name}"
)
%
{
noteable_name:
noteable_name
}
}
}
%button
.btn.btn-transparent
%button
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
=
sprite_icon
(
'check'
,
css_
class:
'icon'
)
.description
.description
%strong
=
_
(
"Start thread"
)
%strong
=
_
(
"Start thread"
)
%p
%p
...
...
changelogs/unreleased/225956-replace-fa-check-icons-with-gitlab-svg-check-icon.yml
0 → 100644
View file @
2e861da1
---
title
:
Replace fa-check icons with GitLab SVG check icon
merge_request
:
43353
author
:
type
:
changed
ee/app/assets/stylesheets/pages/projects.scss
View file @
2e861da1
...
@@ -6,10 +6,6 @@
...
@@ -6,10 +6,6 @@
}
}
.project-mirror-settings
{
.project-mirror-settings
{
.fingerprint-verified
{
color
:
$green-500
;
}
.ssh-public-key
,
.ssh-public-key
,
.btn-copy-ssh-public-key
{
.btn-copy-ssh-public-key
{
float
:
left
;
float
:
left
;
...
...
spec/features/issues/user_creates_branch_and_merge_request_spec.rb
View file @
2e861da1
...
@@ -250,7 +250,7 @@ RSpec.describe 'User creates branch and merge request on issue page', :js do
...
@@ -250,7 +250,7 @@ RSpec.describe 'User creates branch and merge request on issue page', :js do
def
test_selection_mark
(
li_create_branch
,
li_create_merge_request
,
button_create_target
,
button_create_merge_request
)
def
test_selection_mark
(
li_create_branch
,
li_create_merge_request
,
button_create_target
,
button_create_merge_request
)
page
.
within
(
li_create_merge_request
)
do
page
.
within
(
li_create_merge_request
)
do
expect
(
page
).
to
have_
css
(
'i.fa.fa-check
'
)
expect
(
page
).
to
have_
selector
(
'[data-testid="check-icon"]
'
)
expect
(
button_create_target
).
to
have_text
(
'Create merge request'
)
expect
(
button_create_target
).
to
have_text
(
'Create merge request'
)
expect
(
button_create_merge_request
).
to
have_text
(
'Create merge request'
)
expect
(
button_create_merge_request
).
to
have_text
(
'Create merge request'
)
end
end
...
@@ -258,7 +258,7 @@ RSpec.describe 'User creates branch and merge request on issue page', :js do
...
@@ -258,7 +258,7 @@ RSpec.describe 'User creates branch and merge request on issue page', :js do
li_create_branch
.
click
li_create_branch
.
click
page
.
within
(
li_create_branch
)
do
page
.
within
(
li_create_branch
)
do
expect
(
page
).
to
have_
css
(
'i.fa.fa-check
'
)
expect
(
page
).
to
have_
selector
(
'[data-testid="check-icon"]
'
)
expect
(
button_create_target
).
to
have_text
(
'Create branch'
)
expect
(
button_create_target
).
to
have_text
(
'Create branch'
)
expect
(
button_create_merge_request
).
to
have_text
(
'Create branch'
)
expect
(
button_create_merge_request
).
to
have_text
(
'Create branch'
)
end
end
...
...
spec/support/shared_examples/features/discussion_comments_shared_example.rb
View file @
2e861da1
...
@@ -56,12 +56,12 @@ RSpec.shared_examples 'thread comments' do |resource_name|
...
@@ -56,12 +56,12 @@ RSpec.shared_examples 'thread comments' do |resource_name|
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
to
have_content
"Add a general comment to this
#{
resource_name
}
."
expect
(
items
.
first
).
to
have_content
"Add a general comment to this
#{
resource_name
}
."
expect
(
items
.
first
).
to
have_selector
'
.fa-check
'
expect
(
items
.
first
).
to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
first
[
'class'
]).
to
match
'droplab-item-selected'
expect
(
items
.
first
[
'class'
]).
to
match
'droplab-item-selected'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
to
have_content
"Discuss a specific suggestion or question
#{
' that needs to be resolved'
if
resource_name
==
'merge request'
}
."
expect
(
items
.
last
).
to
have_content
"Discuss a specific suggestion or question
#{
' that needs to be resolved'
if
resource_name
==
'merge request'
}
."
expect
(
items
.
last
).
not_to
have_selector
'
.fa-check
'
expect
(
items
.
last
).
not_to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
last
[
'class'
]).
not_to
match
'droplab-item-selected'
expect
(
items
.
last
[
'class'
]).
not_to
match
'droplab-item-selected'
end
end
...
@@ -228,11 +228,11 @@ RSpec.shared_examples 'thread comments' do |resource_name|
...
@@ -228,11 +228,11 @@ RSpec.shared_examples 'thread comments' do |resource_name|
items
=
all
(
"
#{
menu_selector
}
li"
)
items
=
all
(
"
#{
menu_selector
}
li"
)
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
not_to
have_selector
'
.fa-check
'
expect
(
items
.
first
).
not_to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
first
[
'class'
]).
not_to
match
'droplab-item-selected'
expect
(
items
.
first
[
'class'
]).
not_to
match
'droplab-item-selected'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
to
have_selector
'
.fa-check
'
expect
(
items
.
last
).
to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
last
[
'class'
]).
to
match
'droplab-item-selected'
expect
(
items
.
last
[
'class'
]).
to
match
'droplab-item-selected'
end
end
...
@@ -274,11 +274,11 @@ RSpec.shared_examples 'thread comments' do |resource_name|
...
@@ -274,11 +274,11 @@ RSpec.shared_examples 'thread comments' do |resource_name|
aggregate_failures
do
aggregate_failures
do
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
to
have_content
'Comment'
expect
(
items
.
first
).
to
have_selector
'
.fa-check
'
expect
(
items
.
first
).
to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
first
[
'class'
]).
to
match
'droplab-item-selected'
expect
(
items
.
first
[
'class'
]).
to
match
'droplab-item-selected'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
to
have_content
'Start thread'
expect
(
items
.
last
).
not_to
have_selector
'
.fa-check
'
expect
(
items
.
last
).
not_to
have_selector
'
[data-testid="check-icon"]
'
expect
(
items
.
last
[
'class'
]).
not_to
match
'droplab-item-selected'
expect
(
items
.
last
[
'class'
]).
not_to
match
'droplab-item-selected'
end
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