Skip to content

Commit a0e9efd

Browse files
committed
fix: test code & addressed nit code reviews
1 parent 1f0e38a commit a0e9efd

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

src/components/topbar/TopbarBadge.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ describe('TopbarBadge', () => {
185185
'full'
186186
)
187187

188-
expect(wrapper.find('.pi-exclamation-triangle').exists()).toBe(true)
188+
expect(wrapper.find('.icon-\\[lucide--triangle-alert\\]').exists()).toBe(
189+
true
190+
)
189191
})
190192
})
191193

src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="flex w-full items-center justify-between p-4">
33
<div class="flex items-center gap-2">
4-
<i class="icon-[lucide--triangle-alert] text-warning-background"></i>
4+
<i class="icon-[lucide--triangle-alert] text-warning-background" />
55
<p class="m-0 text-sm">
66
{{ $t('importFailed.title') }}
77
</p>

src/workbench/extensions/manager/components/manager/ManagerDialogContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
class="relative mt-3 mb-4 flex items-center gap-6 rounded-lg bg-yellow-500/20 p-4"
4040
>
4141
<i
42-
class="icon-[lucide--triangle-alert] text-lg text-yellow-600"
43-
></i>
42+
class="icon-[lucide--triangle-alert] text-lg text-warning-background"
43+
/>
4444
<div class="flex flex-1 flex-col gap-2">
4545
<p class="m-0 text-sm font-bold">
4646
{{ $t('manager.conflicts.warningBanner.title') }}

src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="flex h-12 w-full items-center justify-between pl-6">
33
<div class="flex items-center gap-2">
44
<!-- Warning Icon -->
5-
<i class="icon-[lucide--triangle-alert] text-warning-background"></i>
5+
<i class="icon-[lucide--triangle-alert] text-warning-background" />
66
<!-- Title -->
77
<p class="text-base font-bold">
88
{{ $t('manager.conflicts.title') }}

src/workbench/extensions/manager/components/manager/PackVersionSelectorPopover.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ describe('PackVersionSelectorPopover', () => {
411411
expect(mockCheckNodeCompatibility).toHaveBeenCalled()
412412

413413
// The warning icon should be shown for incompatible versions
414-
const warningIcons = wrapper.findAll('.pi-exclamation-triangle')
414+
const warningIcons = wrapper.findAll('.icon-\\[lucide--triangle-alert\\]')
415415
expect(warningIcons.length).toBeGreaterThan(0)
416416
})
417417

@@ -536,7 +536,7 @@ describe('PackVersionSelectorPopover', () => {
536536
expect(mockCheckNodeCompatibility).toHaveBeenCalled()
537537

538538
// The warning icon should be shown for version incompatible packages
539-
const warningIcons = wrapper.findAll('.pi-exclamation-triangle')
539+
const warningIcons = wrapper.findAll('.icon-\\[lucide--triangle-alert\\]')
540540
expect(warningIcons.length).toBeGreaterThan(0)
541541
})
542542

@@ -662,7 +662,7 @@ describe('PackVersionSelectorPopover', () => {
662662
await wrapper.vm.$nextTick()
663663

664664
// The warning icon should be shown for banned packages in the dropdown options
665-
const warningIcons = wrapper.findAll('.pi-exclamation-triangle')
665+
const warningIcons = wrapper.findAll('.icon-\\[lucide--triangle-alert\\]')
666666
expect(warningIcons.length).toBeGreaterThan(0)
667667
})
668668

@@ -705,7 +705,7 @@ describe('PackVersionSelectorPopover', () => {
705705
expect(mockCheckNodeCompatibility).toHaveBeenCalled()
706706

707707
// The warning icon should be shown for security pending packages
708-
const warningIcons = wrapper.findAll('.pi-exclamation-triangle')
708+
const warningIcons = wrapper.findAll('.icon-\\[lucide--triangle-alert\\]')
709709
expect(warningIcons.length).toBeGreaterThan(0)
710710
})
711711
})

src/workbench/extensions/manager/components/manager/button/PackEnableToggle.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('PackEnableToggle', () => {
192192
const wrapper = mountComponent()
193193

194194
// Check if warning icon exists
195-
const warningIcon = wrapper.find('.pi-exclamation-triangle')
195+
const warningIcon = wrapper.find('.icon-\\[lucide--triangle-alert\\]')
196196
expect(warningIcon.exists()).toBe(true)
197197
expect(warningIcon.classes()).toContain('text-warning-background')
198198
})
@@ -204,7 +204,7 @@ describe('PackEnableToggle', () => {
204204
const wrapper = mountComponent()
205205

206206
// Check if warning icon does not exist
207-
const warningIcon = wrapper.find('.pi-exclamation-triangle')
207+
const warningIcon = wrapper.find('.icon-\\[lucide--triangle-alert\\]')
208208
expect(warningIcon.exists()).toBe(false)
209209
})
210210
})

src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<i
1313
class="icon-[lucide--triangle-alert] text-xl text-warning-background"
14-
></i>
14+
/>
1515
</div>
1616
<ToggleSwitch
1717
v-if="!canToggleDirectly"

0 commit comments

Comments
 (0)