From 3c9072c4da3771f9d0e3f4c62ef640fee63f06aa Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Wed, 7 Oct 2026 19:10:00 +0000 Subject: [PATCH] Settings: "Check for an update" and "Check for jobs" (7 October 2026, main's ruling after a press of the jobs button for the update check: the two sat as "Check" and "Check now"); the view test asserts each label and that each handler posts its own route (api/update/check, api/jobs/check), known-failed first on the old labels; for the 0.3.23 tree Co-Authored-By: Claude Fable 5.1 --- app/igneum-app/ui/index.html | 4 ++-- app/igneum-app/ui/view.test.mjs | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/igneum-app/ui/index.html b/app/igneum-app/ui/index.html index 5d27fb6f..3e9b53aa 100644 --- a/app/igneum-app/ui/index.html +++ b/app/igneum-app/ui/index.html @@ -532,7 +532,7 @@ -
+
@@ -568,7 +568,7 @@
- +
diff --git a/app/igneum-app/ui/view.test.mjs b/app/igneum-app/ui/view.test.mjs index 4b9797ae..d367cecf 100644 --- a/app/igneum-app/ui/view.test.mjs +++ b/app/igneum-app/ui/view.test.mjs @@ -1055,3 +1055,17 @@ test('a locale with no currency row falls back to USD with the override prompt v assert.equal(V.currencyAsk(V.currencyChoice({}, 'en-GB')), ''); assert.ok(pageHtml.includes('id="s-currency-ask"') && pageHtml.includes('id="region-currency-ask"'), 'the prompt element on Settings and on the first-run step'); }); + +// ---------- the two check buttons on Settings (7 October 2026, main's ruling after a "Check now" pressed for the wrong check) ---------- +// The update check and the remote-jobs check sat as "Check" and "Check now"; a reader (and a lane) took the jobs one for +// the update one. Each button now names its check, and each handler posts its own route. +test('Settings: "Check for an update" posts api/update/check and "Check for jobs" posts api/jobs/check (known-failed on the old labels)', () => { + const html = readFileSync(join(dirname(fileURLToPath(import.meta.url)), 'index.html'), 'utf8'); + assert.match(html, /