mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-13 14:50:36 +00:00
* feat(frontend): improve file attachment recovery and artifact presentation * feat(extensions): add Office artifact previews with search and navigation * fix: preserve public viewers and HTTP Office previews * fix: address file preview and upload review findings * fix: use typed upload errors and linear bookmark allocation * fix(office-preview): isolate parsing and bound preview resources * fix(ci): install Office preview fixture dependencies for E2E * fix(ci): provision matching Playwright browsers before E2E tests * fix(ci): isolate Python libraries and include Office documentation * test(frontend): wait for download status to finish rendering
24 lines
783 B
TypeScript
24 lines
783 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
|
|
import { describe, expect, it } from "@rstest/core";
|
|
|
|
describe("large artifact preview", () => {
|
|
it("requires an explicit full load before mounting the code editor", () => {
|
|
const source = readFileSync(
|
|
join(
|
|
import.meta.dirname,
|
|
"../../../../../src/components/workspace/artifacts/artifact-file-detail.tsx",
|
|
),
|
|
"utf8",
|
|
);
|
|
|
|
expect(source).toContain("loadFullContent");
|
|
expect(source).toContain("!truncated &&");
|
|
expect(source).toContain("artifactPreview.loadFullFile");
|
|
expect(source).toContain("ArtifactPreviewError");
|
|
expect(source).toContain("artifactPreview.previewFailed");
|
|
expect(source).toContain("ArtifactDownloadButton");
|
|
});
|
|
});
|