Skip to content

Commit ffb7bd9

Browse files
committed
test: update tests
1 parent 4919ddf commit ffb7bd9

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

test/nuxt/components/PackageVersions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ describe('PackageVersions', () => {
920920
})
921921

922922
// Find chevron icons inside buttons
923-
const chevronIcons = component.findAll('button span.i-carbon\\:chevron-right')
923+
const chevronIcons = component.findAll('button span.i-lucide\\:chevron-right')
924924
expect(chevronIcons.length).toBeGreaterThan(0)
925925
for (const icon of chevronIcons) {
926926
expect(icon.attributes('aria-hidden')).toBe('true')

test/nuxt/components/VersionSelector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ describe('VersionSelector', () => {
544544

545545
// Should show loading spinner (motion-safe:animate-spin is applied)
546546
await vi.waitFor(() => {
547-
const spinner = component.find('.i-carbon\\:rotate-180')
547+
const spinner = component.find('.i-lucide\\:undo-2')
548548
expect(spinner.exists()).toBe(true)
549549
})
550550

test/nuxt/components/compare/FacetRow.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ describe('FacetRow', () => {
3333
description: 'Number of downloads per week',
3434
},
3535
})
36-
expect(component.find('.i-carbon\\:information').exists()).toBe(true)
36+
expect(component.find('.i-lucide\\:info').exists()).toBe(true)
3737
})
3838

3939
it('does not render description icon when not provided', async () => {
4040
const component = await mountSuspended(FacetRow, {
4141
props: baseProps,
4242
})
43-
expect(component.find('.i-carbon\\:information').exists()).toBe(false)
43+
expect(component.find('.i-lucide\\:info').exists()).toBe(false)
4444
})
4545
})
4646

@@ -80,7 +80,7 @@ describe('FacetRow', () => {
8080
},
8181
})
8282
// All cells should show loading spinner
83-
expect(component.findAll('.i-carbon\\:circle-dash').length).toBe(2)
83+
expect(component.findAll('.i-svg-spinners\\:ring-resize').length).toBe(2)
8484
})
8585

8686
it('renders loading state for specific column loading', async () => {
@@ -92,7 +92,7 @@ describe('FacetRow', () => {
9292
},
9393
})
9494
// Only second cell should show loading spinner
95-
const spinners = component.findAll('.i-carbon\\:circle-dash')
95+
const spinners = component.findAll('.i-svg-spinners\\:ring-resize')
9696
expect(spinners.length).toBe(1)
9797
})
9898
})

test/nuxt/components/compare/FacetSelector.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('FacetSelector', () => {
152152

153153
const component = await mountSuspended(FacetSelector)
154154

155-
expect(component.find('.i-carbon\\:checkmark').exists()).toBe(true)
155+
expect(component.find('.i-lucide\\:check').exists()).toBe(true)
156156
})
157157

158158
it('shows add icon for unselected facets', async () => {
@@ -161,7 +161,7 @@ describe('FacetSelector', () => {
161161

162162
const component = await mountSuspended(FacetSelector)
163163

164-
expect(component.find('.i-carbon\\:add').exists()).toBe(true)
164+
expect(component.find('.i-lucide\\:plus').exists()).toBe(true)
165165
})
166166

167167
it('applies aria-pressed for selected state', async () => {
@@ -211,8 +211,8 @@ describe('FacetSelector', () => {
211211
const comingSoonButton = buttons.find(b => b.text().includes(comingSoonFacetLabel))
212212

213213
// Should not have checkmark or add icon
214-
expect(comingSoonButton?.find('.i-carbon\\:checkmark').exists()).toBe(false)
215-
expect(comingSoonButton?.find('.i-carbon\\:add').exists()).toBe(false)
214+
expect(comingSoonButton?.find('.i-lucide\\:check').exists()).toBe(false)
215+
expect(comingSoonButton?.find('.i-lucide\\:plus').exists()).toBe(false)
216216
})
217217

218218
it('does not call toggleFacet when comingSoon facet is clicked', async () => {

test/nuxt/components/compare/PackageSelector.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('PackageSelector', () => {
5454

5555
const removeButtons = component
5656
.findAll('button')
57-
.filter(b => b.find('.i-carbon\\:close').exists())
57+
.filter(b => b.find('.i-lucide\\:circle-x').exists())
5858
expect(removeButtons.length).toBe(2)
5959
})
6060

@@ -67,7 +67,7 @@ describe('PackageSelector', () => {
6767

6868
const removeButton = component
6969
.findAll('button')
70-
.find(b => b.find('.i-carbon\\:close').exists())
70+
.find(b => b.find('.i-lucide\\:circle-x').exists())
7171
await removeButton!.trigger('click')
7272

7373
const emitted = component.emitted('update:modelValue')

0 commit comments

Comments
 (0)