fix(chat): keep browser hint expanded and readable
This commit is contained in:
@@ -201,21 +201,21 @@ describe("chat Tailwind components", () => {
|
||||
const html = renderToStaticMarkup(
|
||||
<BrowserHintOverlay
|
||||
forceShow
|
||||
autoCollapseDelayMs={0}
|
||||
title="Open elsewhere"
|
||||
description="Better experience"
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(html).toContain('aria-expanded="true"');
|
||||
expect(html).not.toContain("aria-expanded");
|
||||
expect(html).toContain('aria-label="Open elsewhere. Better experience"');
|
||||
expect(html).toContain("grid-cols-[auto_minmax(0,1fr)]");
|
||||
expect(html).toContain(
|
||||
"right-[calc(var(--spacing-md,12px)+var(--responsive-icon-button-size,42px)+var(--spacing-sm,8px))]",
|
||||
);
|
||||
expect(html).toContain("max-w-[min(58vw,220px)]");
|
||||
expect(html).toContain("backdrop-blur-md");
|
||||
expect(html).toContain("hover:opacity-94");
|
||||
expect(html).toContain("bg-[#17131f]");
|
||||
expect(html).toContain("text-[#f3dfe8]");
|
||||
expect(html).not.toContain("Show external browser hint");
|
||||
expect(html).toContain("Open elsewhere");
|
||||
expect(html).toContain("Better experience");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user