mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-16 04:03:02 +03:00
fix(video-bridge): align release gate contracts
This commit is contained in:
committed by
Xiangzhe
parent
07d5eba94d
commit
a32f5ffb5b
@@ -117,7 +117,7 @@ export default function ModalityBridgeVideoTab() {
|
||||
};
|
||||
|
||||
if (errorState === "load") {
|
||||
return <div role="alert">{tRoot("errorPage.title")}</div>;
|
||||
return <div role="alert">{tRoot("publicSystem.error.title")}</div>;
|
||||
}
|
||||
if (!settings) return null;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ import { resolveAudioCapability, resolveVideoCapability } from "@/lib/modelCapab
|
||||
|
||||
export type { ModelCapabilityResolutionSnapshot } from "@/lib/modelCapabilityResolutionSnapshot";
|
||||
export { createModelCapabilityResolutionSnapshot } from "@/lib/modelCapabilityResolutionSnapshot";
|
||||
export { resolveAudioCapability } from "@/lib/modelCapabilityModalities";
|
||||
import { isVisionModelId } from "@/shared/constants/visionModels";
|
||||
import { getUnsupportedParams } from "@omniroute/open-sse/config/providerRegistry.ts";
|
||||
import {
|
||||
|
||||
@@ -81,11 +81,12 @@ test("SPAWN_CAPABLE_PREFIXES is defined in the server-free constants leaf with t
|
||||
"/api/headroom/start",
|
||||
"/api/headroom/stop",
|
||||
"/api/vnc-session",
|
||||
"/api/modality-bridge/video/",
|
||||
]) {
|
||||
assert.ok(
|
||||
SPAWN_CAPABLE_PREFIXES.includes(prefix),
|
||||
`SPAWN_CAPABLE_PREFIXES lost the spawn-capable prefix "${prefix}" during extraction`
|
||||
);
|
||||
}
|
||||
assert.equal(SPAWN_CAPABLE_PREFIXES.length, 11);
|
||||
assert.equal(SPAWN_CAPABLE_PREFIXES.length, 12);
|
||||
});
|
||||
|
||||
@@ -195,7 +195,7 @@ describe("ModalityBridgeVideoTab", () => {
|
||||
failSettingsLoad = true;
|
||||
const element = await renderWithoutWaiting();
|
||||
await waitFor(() => element.querySelector('[role="alert"]') !== null, "load error");
|
||||
expect(element.textContent).toContain("errorPage.title");
|
||||
expect(element.textContent).toContain("publicSystem.error.title");
|
||||
expect(element.querySelector('[data-testid="modality-bridge-video-frame-count"]')).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user