Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): thread switches show only selected thread messages #21560

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/21560/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 10 additions and 14 deletions (loading 1).

x
0 of 4 viewed, 4 left
4 additions and 0 deletionsapps/web/src/components/chat/WorkflowOpeningBlock.browser.test.tsxModified
View file
@@ -5,6 +5,7 @@
import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";
​
import "~/index.css";
+import { getSyntaxHighlighterPromise } from "../../lib/syntaxHighlighting";
​
import { AppAtomRegistryProvider } from "../../rpc/atomRegistry";
import { MarkdownFindContext } from "./markdownFindContext";
@@ -109,6 +110,9 @@
​
it("shows a short script as highlighted code with nothing to open", async () => {
await render(SHORT_SCRIPT);
+ await act(async () => {
+ await getSyntaxHighlighterPromise("javascript");
+ });
expect(host.querySelector('[data-language="javascript"]')?.textContent).toContain("SCRIPTONLY");
await vi.waitFor(() => expect(host.querySelector(".chat-markdown-shiki")).not.toBeNull());
expect(foldToggle()).toBeUndefined();
3 additions and 0 deletionsapps/web/src/components/files/AttachmentFilePreview.browser.test.tsxModified
View file
@@ -69,6 +69,9 @@
expect(container.querySelector("iframe")?.getAttribute("src")).toBe(originalUrl);
now = 61 * 60_000;
await toggleMode("Show HTML source");
+ await act(async () => {
+ await import("./ReadOnlySourcePreview");
+ });