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
fix(api-keys): correct test expectation for key validation
Steven Enamakel8ef31d2dec3a
diff --git a/app/src/pages/onboarding/steps/ApiKeysStep.test.tsx b/app/src/pages/onboarding/steps/ApiKeysStep.test.tsxnew file mode 100644index 0000000000..aef158d134--- /dev/null+++ b/app/src/pages/onboarding/steps/ApiKeysStep.test.tsx@@ -0,0 +1,24 @@+import { screen } from '@testing-library/react';+import { describe, expect, it, vi } from 'vitest';++import { renderWithProviders } from '../../../test/test-utils';+import ApiKeysStep from './ApiKeysStep';++describe('Onboarding ApiKeysStep', () => {+ it('renders the OpenAI/Anthropic key form with an "or" divider between OAuth and manual key entry', () => {+ renderWithProviders(<ApiKeysStep onNext={vi.fn()} onSkip={vi.fn()} />);++ expect(screen.getByTestId('onboarding-api-keys-step')).toBeInTheDocument();+ expect(screen.getByTestId('onboarding-api-keys-openai-input')).toBeInTheDocument();+ expect(screen.getByTestId('onboarding-api-keys-anthropic-input')).toBeInTheDocument();++ // The hand-rolled divider divs were replaced with the shared Separator+ // primitive — assert its Radix-driven decorative semantics survive.+ const separators = document.querySelectorAll('[data-slot="separator"]');+ expect(separators).toHaveLength(2);+ separators.forEach(separator => {+ expect(separator).toHaveAttribute('aria-hidden', 'true');+ expect(separator).not.toHaveAttribute('role', 'separator');+ });+ });+});