openpencil/tests/e2e/native
Danila Poyarkov f2485d6926
fix(desktop): allow reading recent .fig files for thumbnails (#872)
* fix(desktop): allow reading recent .fig files for thumbnails

The recent-files thumbnail loader stats a .fig file, opens it, and seeks
and reads its thumbnail entry, but the desktop capability granted none of
those fs commands, so the WebView rejected the first call ("fs.stat not
allowed") and no thumbnail ever loaded. Grant stat and open with the same
path scope as read-file, plus the handle commands they lead to.

A native spec runs the loader's command sequence on a real .fig file.

* test(desktop): check the bytes the recent-file thumbnail read returns

The native spec discarded the read result, so a read returning nothing would pass. Assert the zip signature and the byte count the fs plugin appends, through a bytes variant of the native invoke helper.
2026-10-04 13:03:20 +00:00
..
clipboard.spec.ts test(tauri): add native WebView interaction harness (#532) 2026-08-15 14:17:05 +03:00
credentials.spec.ts fix: prevent repeated Keychain prompts and isolate native tests (#664) 2026-09-09 13:41:55 +03:00
layer-drag.spec.ts test(native): open a document before editor fixtures 2026-09-15 14:43:31 +03:00
mcp.spec.ts test(native): cover the desktop MCP server lifecycle (#723) 2026-09-18 11:42:55 +03:00
recent-files.spec.ts fix(desktop): allow reading recent .fig files for thumbnails (#872) 2026-10-04 13:03:20 +00:00
settings.spec.ts test(native): cover the desktop MCP server lifecycle (#723) 2026-09-18 11:42:55 +03:00
support.spec.ts fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
text-editing.spec.ts docs(testing): define source-owned test architecture 2026-09-16 15:28:47 +03:00
tsconfig.json test(tauri): add native WebView interaction harness (#532) 2026-08-15 14:17:05 +03:00