Show Overview update failures and cover copied launcher configuration

This commit is contained in:
Дмитрий committed 2026-10-14 08:26:19 +05:00
1 parent 24d593d787
commit be2f252593
6 files changed
+114 -7

No files matched your search

+14
View File
@@ -76,3 +76,17 @@ test("a rejected recheck removes an earlier cached update offer", async () => {
assert.equal(useServerUpdate("stale-offer").preview, null);
} finally { globalThis.__hotfixApi.checkUpdate = original; }
});
test("a successful recheck keeps the last failed update details visible", async () => {
applyFailure = true;
stateFailure = false;
pending = null;
try {
assert.equal(await applyServerUpdate("visible-error", { choices: {} }), false);
await checkServerUpdate("visible-error");
const state = useServerUpdate("visible-error");
assert.equal(state.applying, false);
assert.equal(state.available, false);
assert.equal(state.uiError.technical, "SQL failure");
} finally { applyFailure = false; }
});