fix(store): banner on a refused archive write, rescue download kept alive

This commit is contained in:
bchanot committed 2026-10-14 23:18:33 +02:00
1 parent a37c50b9ee
commit c97b0e7c67
4 files changed
+29 -8

No files matched your search

@@ -309,6 +309,10 @@ describe('the draft mirror', () => {
store().hydrateImport({ report: second, archive: archiveEnvelope(sheet, second) }, sheet)
expect(sessionStorage.getItem(ARCHIVE_KEY)).toBeNull()
expect(JSON.parse(sessionStorage.getItem(DRAFT_KEY)!).conclusion).toBe('second')
// The tab's copy lacks the imported archive: the banner says so until a write succeeds.
expect(store().saveFailed).toBe(true)
store().setConclusion('edited')
expect(store().saveFailed).toBe(true)
})
it('a deletion request is ignored while a report is open', () => {