Skip to content

Commit 05bd71e

Browse files
committed
chore: remove styling tests
Using unit tests for styling is weird. It would be better to test ARIA state as we’re styling based on that.
1 parent 9ab02af commit 05bd71e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -318,22 +318,4 @@ describe('FacetSelector', () => {
318318
expect(mockDeselectCategory).not.toHaveBeenCalled()
319319
})
320320
})
321-
322-
describe('styling', () => {
323-
it('applies selected styling to selected facets', async () => {
324-
mockSelectedFacets.value = ['downloads']
325-
mockIsFacetSelected.mockImplementation((f: string) => f === 'downloads')
326-
327-
const component = await mountSuspended(FacetSelector)
328-
329-
// Selected facets have bg-bg-muted class
330-
expect(component.find('.aria-checked:bg-bg-muted').exists()).toBe(true)
331-
})
332-
333-
it.runIf(hasComingSoonFacets)('applies cursor-not-allowed to comingSoon facets', async () => {
334-
const component = await mountSuspended(FacetSelector)
335-
336-
expect(component.find('.cursor-not-allowed').exists()).toBe(true)
337-
})
338-
})
339321
})

0 commit comments

Comments
 (0)