import { expect, it } from 'vitest' import factory from '@/__tests__/factory' import UnitTestCase from '@/__tests__/UnitTestCase' import AlbumInfo from './AlbumInfo.vue' import AlbumThumbnail from '@/components/ui/AlbumArtistThumbnail.vue' new class extends UnitTestCase { protected test () { it.each([['sidebar'], ['full']])('renders in %s mode', async (mode: string) => { const { getByTestId } = this.render(AlbumInfo, { props: { mode, album: factory('album') }, global: { stubs: { AlbumThumbnail } } }) getByTestId('album-artist-thumbnail') const element = getByTestId('album-info') expect(element.classList.contains(mode)).toBe(true) }) it('triggers showing full wiki', async () => { throw new Error('Not implemented') }) } }