@devries-cameron20 / t3code-1 / commits / d81757eea9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(web): attachment preview omission tests no longer time out on CI (#25515)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 26, 2026 at 07:27 UTC d81757eea9b70c7b11b5de08725044a12c30e1e0
1 file changed +4 -1
apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx
+4 -1
@@ -1288,9 +1288,12 @@ it.each([
1288 '<Relationships><Relationship Id="doc" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships>',
1289 );
1290 const text = (value: string) => `<w:p><w:r><w:t>${value}</w:t></w:r></w:p>`;
1291 + // Each copy of the 2,000-paragraph payload costs 8,000 markup units, so 20
1292 + // references (or pages) exceed the 100,000-unit expansion budget. More pages
1293 + // only add layout time to the preview.
1294 archive.file(
1295 "word/document.xml",
1293 - `<w:document xmlns:w="${ns}" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><w:body>${text("body retained")}${Array.from({ length: 500 }, () => `<w:p><w:r><w:footnoteReference w:id="1"/><w:endnoteReference w:id="1"/><w:commentReference w:id="1"/><w:br w:type="page"/></w:r></w:p>`).join("")}<w:sectPr><w:headerReference w:type="default" r:id="aux"/><w:footerReference w:type="default" r:id="aux"/></w:sectPr></w:body></w:document>`,
1296 + `<w:document xmlns:w="${ns}" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><w:body>${text("body retained")}${Array.from({ length: 20 }, () => `<w:p><w:r><w:footnoteReference w:id="1"/><w:endnoteReference w:id="1"/><w:commentReference w:id="1"/><w:br w:type="page"/></w:r></w:p>`).join("")}<w:sectPr><w:headerReference w:type="default" r:id="aux"/><w:footerReference w:type="default" r:id="aux"/></w:sectPr></w:body></w:document>`,
1297 );
1298 archive.file(
1299 "word/_rels/document.xml.rels",