Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(a11y): update smoke test to use new ApprovalCardAdapter

Steven Enamakelc1996f1b53e6
diff --git a/app/src/components/__tests__/a11y.smoke.test.tsx b/app/src/components/__tests__/a11y.smoke.test.tsx
index 03c3eefa25..c4d99c9418 100644
--- a/app/src/components/__tests__/a11y.smoke.test.tsx
+++ b/app/src/components/__tests__/a11y.smoke.test.tsx
@@ -8,18 +8,12 @@
* Kept deliberately small and provider-light so it stays fast and stable; grow
* it screen-by-screen rather than pulling in the full app shell.
*/
-import { configureStore } from '@reduxjs/toolkit';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
-import { Provider } from 'react-redux';
import { describe, expect, it, vi } from 'vitest';
-import chatRuntimeReducer, {
- type ArtifactSnapshot,
- type PendingApproval,
- setPendingApprovalForThread,
-} from '../../store/chatRuntimeSlice';
-import ApprovalRequestCard from '../chat/ApprovalRequestCard';
+import type { ArtifactSnapshot } from '../../store/chatRuntimeSlice';
+import { ApprovalCardAdapter } from '../../features/conversations/aui/ApprovalCardAdapter';
import ArtifactCard from '../chat/ArtifactCard';
vi.mock('../../services/artifactDownloadService', () => ({
diff --git a/crates/openhuman-core/src/web_chat/run_task_tests.rs b/crates/openhuman-core/src/web_chat/run_task_tests.rs
index e4098ee691..5a520d020d 100644
--- a/crates/openhuman-core/src/web_chat/run_task_tests.rs
+++ b/crates/openhuman-core/src/web_chat/run_task_tests.rs
@@ -6,6 +6,7 @@ fn ok() -> Result<WebChatTaskResult, String> {
citations: Vec::new(),
usage: None,
workspace_dir: std::path::PathBuf::from("/tmp/ws"),
+ timing: None,
})
}