fix(webui): keep model management available and bundle core provider logos
This commit is contained in:
1 parent
4fd4dc522d
commit
0cac850737
14 files changed
+207
-37
No files matched your search
@@ -39,9 +39,13 @@ describe.each(["picker", "overview", "composer", "hero"] as const)("%s provider
|
||||
expectFrame(icon);
|
||||
expect(icon).toHaveClass("bg-muted");
|
||||
expect(image).toHaveClass("h-3.5", "w-3.5", "opacity-0");
|
||||
const fallback = icon.querySelector("span")!;
|
||||
expect(fallback).toHaveTextContent(providerBrand(provider)!.initials);
|
||||
expect(fallback).toHaveClass("opacity-100");
|
||||
fireEvent.load(image);
|
||||
expect(icon).toHaveClass("bg-white");
|
||||
expect(image).toHaveClass("opacity-100");
|
||||
expect(fallback).toHaveClass("opacity-0");
|
||||
});
|
||||
|
||||
it("avoids the Moonshot halo, and insets unknown fallback images", () => {
|
||||
|
||||
Reference in new issue
Block a user