Skip to content

Commit d81757e

Browse files
test(web): attachment preview omission tests no longer time out on CI (#25515)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f05c38f commit d81757e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,9 +1288,12 @@ it.each([
12881288
'<Relationships><Relationship Id="doc" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships>',
12891289
);
12901290
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.
12911294
archive.file(
12921295
"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>`,
12941297
);
12951298
archive.file(
12961299
"word/_rels/document.xml.rels",

0 commit comments

Comments
 (0)