tests: purge editor drafts after a run

Tests that opened the card modal left hyprcrd-editor-draft:* entries
in localStorage. The pre-run purge cleared them before the baseline
backup, but anything the tests wrote during the run stayed behind —
the user's next card open then fired "unsaved draft from 0 min ago,
restore?" for a non-edit they didn't make. Repeat the purge after
restore so the runner closes with a clean slate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thandClaude Opus 4.6 committed 2026-04-15 21:28:29 +02:00
1 parent 87ce038b19
commit 8020ddc787
3 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hyprcrd",
"version": "1.9.9",
"version": "1.9.10",
"description": "hyprcrd — self-hosted card manager",
"main": "main.js",
"scripts": {