Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

536 B
Raw Blame
import React from 'react';
import { render, screen } from '@testing-library/react';
import { expect, it, vi } from 'vitest';
import NotificationPanel from './NotificationPanel';

vi.mock('../api/hooks', () => ({
  useVisibleNotifications: () => ({ notifications: [{ level: 'error' }, { level: 'warn' }] }),
}));

it('keeps the badge inside the title-bar button', () => {
  render(<NotificationPanel />);
  expect(screen.getByText('2')).toHaveClass('top-0', 'right-0');
  expect(screen.getByText('2')).not.toHaveClass('-top-[4px]');
});