ext-apps/tests/e2e
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik e8a4ea5f89
fix(pdf-server): detached-buffer on range re-request + stale e2e assertion (#561)
* fix(pdf-server): slice bytes before onDataRange to avoid detached buffer

PDF.js transfers the ArrayBuffer to its worker via postMessage, detaching
it in the main thread. When the same range is re-requested (common on
iOS/WKWebView under memory pressure during scroll/zoom/navigate), the
cached Uint8Array now wraps a detached buffer and onDataRange throws
'Buffer is already detached'.

Fix: pass result.bytes.slice() so the rangeCache entry stays valid.

* test(e2e): update pdf-annotations assertion for new display_pdf prompt text

The 91880a6d prompt rewrite changed the interact-enabled result text from
'Displaying PDF (viewUUID: ...)' to 'PDF opened. viewUUID: ...'. The e2e
test was still asserting the old string.
2026-03-23 20:17:25 +00:00
..
servers.spec.ts-snapshots fix: update e2e test snapshots for shadertoy and wiki-explorer images 2026-02-15 12:01:16 +01:00
generate-grid-screenshots.spec.ts examples: remove arcade (#414) 2026-01-30 22:06:50 +02:00
pdf-annotations-api.spec.ts pdf-server: annotations, interact tool, page extraction & prompt engineering (#506) 2026-03-19 17:41:55 +00:00
pdf-annotations.spec.ts fix(pdf-server): detached-buffer on range re-request + stale e2e assertion (#561) 2026-03-23 20:17:25 +00:00
security.spec.ts test(e2e): fix no-op security injection test via frames[] traversal (#540) 2026-03-10 17:36:15 +00:00
servers.spec.ts examples: remove arcade (#414) 2026-01-30 22:06:50 +02:00