import { render, screen } from '@testing-library/react'; import { describe, expect, it } from 'vitest'; import { Progress } from './Progress'; describe('Progress', () => { it('renders a progressbar with the provided value', () => { render(); expect(screen.getByRole('progressbar', { name: 'Upload' })).toHaveAttribute( 'aria-valuenow', '45', ); }); it('renders labeled progress parts', () => { render( Design , ); expect(screen.getByText('Design')).toBeInTheDocument(); }); });