import { render, screen } from '@testing-library/react' import { ValidatedErrorIcon, ValidatedErrorMessage, ValidatedSuccessIcon, ValidatingTip, } from './ValidateStatus' describe('ValidateStatus', () => { beforeEach(() => { vi.clearAllMocks() }) it('should show validating text while validation is running', () => { render() expect(screen.getByText('common.provider.validating')).toBeInTheDocument() }) it('should show translated error text with the backend message', () => { render() expect(screen.getByText('common.provider.validatedErrorinvalid-token')).toBeInTheDocument() }) it('should render decorative icon for success and error states', () => { const { container, rerender } = render() expect(container.firstElementChild).toBeTruthy() rerender() expect(container.firstElementChild).toBeTruthy() }) })