openpencil/tests/helpers/tauri
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-mock.ts refactor: scope browser test instrumentation and global types (#667) 2026-09-10 14:26:36 +03:00
editor-snapshot.ts test(native): open a document before editor fixtures 2026-09-15 14:43:31 +03:00
event-recorder.ts test(tauri): add native WebView interaction harness (#532) 2026-08-15 14:17:05 +03:00
fig-export-fixture.ts refactor: scope browser test instrumentation and global types (#667) 2026-09-10 14:26:36 +03:00
invoke.ts fix(desktop): allow reading recent .fig files for thumbnails (#872) 2026-10-04 13:03:20 +00:00
mocks.ts refactor: scope browser test instrumentation and global types (#667) 2026-09-10 14:26:36 +03:00
native-global.d.ts fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
os.ts fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
windows-input.ts refactor!: move shared primitives below dom-css and core (#771) 2026-09-26 11:39:11 +04:00