The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
import { fireEvent, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { renderWithProviders } from '../../../../test/test-utils';
import WelcomeStep from '../WelcomeStep';
describe('WelcomeStep', () => {
it('renders display title + subtitle', () => {
renderWithProviders(<WelcomeStep onNext={() => {}} />);
expect(
screen.getByRole('heading', { level: 1, name: /Hi\. I'm OpenHuman\./ })
).toBeInTheDocument();
expect(
screen.getByText(/super-intelligent AI assistant that runs on your computer/i)
).toBeInTheDocument();
});
it('exposes a "What leaves my computer?" link', () => {
renderWithProviders(<WelcomeStep onNext={() => {}} />);
expect(screen.getByRole('button', { name: 'What leaves my computer?' })).toBeInTheDocument();
});
it('fires onNext when the CTA is clicked', () => {
const onNext = vi.fn();
renderWithProviders(<WelcomeStep onNext={onNext} />);
fireEvent.click(screen.getByRole('button', { name: 'Get Started' }));
expect(onNext).toHaveBeenCalledTimes(1);
});
it('CTA is always enabled (WelcomeStep has no disabled/loading props)', () => {
renderWithProviders(<WelcomeStep onNext={() => {}} />);
expect(screen.getByRole('button', { name: 'Get Started' })).not.toBeDisabled();
});
it('CTA has proper ARIA attributes for accessibility', () => {
renderWithProviders(<WelcomeStep onNext={() => {}} />);
const button = screen.getByRole('button', { name: 'Get Started' });
expect(button).toHaveAttribute('aria-label', 'Get Started');
expect(button).toHaveAttribute('aria-live', 'polite');
expect(button).toHaveAttribute('aria-busy', 'false');
});
});