mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): update E2E test helper to use consolidated acpProvidersCatalog field
The onboarding E2E test passed `{ acpProviders: [] }` to the mock
bridge, but the bridge handler was renamed to read
`acpProvidersCatalog` during consolidation. The stale field name was
silently ignored, causing the default catalog (with available
providers) to be returned instead of an empty list.
This commit is contained in:
@@ -197,7 +197,7 @@ test("page 2 falls back to Doctor guidance when ACP tools are not installed", as
|
||||
await installMockBridge(
|
||||
page,
|
||||
{
|
||||
acpProviders: [],
|
||||
acpProvidersCatalog: [],
|
||||
},
|
||||
{ skipOnboardingSeed: true },
|
||||
);
|
||||
|
||||
@@ -35,14 +35,6 @@ export const TEST_IDENTITIES = {
|
||||
|
||||
type BridgeMode = "mock" | "relay";
|
||||
|
||||
type MockAcpProvider = {
|
||||
id: string;
|
||||
label: string;
|
||||
command: string;
|
||||
binaryPath: string;
|
||||
defaultArgs: string[];
|
||||
};
|
||||
|
||||
type MockCommandAvailability = {
|
||||
available?: boolean;
|
||||
command?: string;
|
||||
@@ -50,7 +42,7 @@ type MockCommandAvailability = {
|
||||
};
|
||||
|
||||
type MockBridgeOptions = {
|
||||
acpProviders?: MockAcpProvider[];
|
||||
acpProvidersCatalog?: Record<string, unknown>[];
|
||||
managedAgentPrereqs?: {
|
||||
acp?: MockCommandAvailability;
|
||||
mcp?: MockCommandAvailability;
|
||||
|
||||
Reference in New Issue
Block a user