From 8020ddc787381d6d9ca97315003403cc6f94a899 Mon Sep 17 00:00:00 2001
From: th
Date: Wed, 15 Apr 2026 21:28:29 +0200
Subject: [PATCH] tests: purge editor drafts after a run
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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)
---
config.php | 2 +-
electron/package.json | 2 +-
public/plugins/tests/runner.js | 10 ++++++++++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/config.php b/config.php
index ace3eeb..98b9c41 100644
--- a/config.php
+++ b/config.php
@@ -1,7 +1,7 @@
|