Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Streaming fade tests: the live-reply row comparison leaves out the streaming mark; the CSS check reads CRLF checkouts
milind-soni6b96b7436cf0
diff --git a/src/components/ChatMarkdown.stream-fade.test.ts b/src/components/ChatMarkdown.stream-fade.test.tsindex 1816136c81..7932c46a75 100644--- a/src/components/ChatMarkdown.stream-fade.test.ts+++ b/src/components/ChatMarkdown.stream-fade.test.ts@@ -72,7 +72,7 @@ describe("a streaming reply's blocks fade in once", () => {});it("fades with opacity only, once, while streaming, and not with reduced motion", () => {- const css = readFileSync(join(dirname(fileURLToPath(import.meta.url)), "../styles.css"), "utf8");+ const css = readFileSync(join(dirname(fileURLToPath(import.meta.url)), "../styles.css"), "utf8").replace(/\r\n/g, "\n");const media = css.match(/@media \(prefers-reduced-motion: no-preference\) \{\n {2}\.chat-md\[data-streaming\] > \*,[\s\S]*?\n\}\n/)?.[0];expect(media, "the fade sits inside prefers-reduced-motion: no-preference").toBeDefined();expect(media).toContain("transition: opacity 600ms ease-out;");diff --git a/src/components/ChatView.live-reply.test.ts b/src/components/ChatView.live-reply.test.tsindex 8455a6a1cb..c5af124b66 100644--- a/src/components/ChatView.live-reply.test.ts+++ b/src/components/ChatView.live-reply.test.ts@@ -69,7 +69,8 @@ const liveRows = () => [...log().querySelectorAll('[data-mid^="live:"]')];const rowOf = (id: string) => log().querySelector(`[data-mid="${id}"]`);const occurrences = (text: string) => (log().textContent ?? "").split(text).length - 1;/** A row's markup with the ids that name it taken out: what the eye sees. */-const looks = (row: Element) => row.outerHTML.replace(/live:[^"]+|data-mid="[^"]+"|data-citation-source="[^"]+"/g, "");+// The streaming mark only gates the fade-in, so it is left out with the ids.+const looks = (row: Element) => row.outerHTML.replace(/live:[^"]+|data-mid="[^"]+"|data-citation-source="[^"]+"| data-streaming=""/g, "");beforeEach(() => {vi.useFakeTimers({ now: started + 5_000 });