KaimLee ccc1d1ea19
fix(frontend): tolerate project attachment storage failures (#8347)
* fix(frontend): tolerate project attachment storage failures

* fix(frontend): tolerate project attachment storage failures

* test(frontend): cover project attachment storage failures

* test(frontend): keep composer state when storage fails

Added tests to verify behavior when storage operations fail.

* test(frontend): isolate storage spies across attachment tests

Refactored sessionStorage mock implementations for better readability and consistency across tests.

* test(frontend): restore attachment hook spies in cleanup

* test(frontend): cover project attachment storage degradation

* test(frontend): expand project attachment storage coverage

* fix(frontend): preserve pending attachments when storage reads fail

* fix(frontend): keep composer edits local after an unreadable attachment list

---------

Co-authored-by: KaimLee <KaimLee@users.noreply.github.com>
2026-11-19 07:27:04 +08:00
..