diff --git a/app/ui/features/settings/taste.test.js b/app/ui/features/settings/taste.test.js index 74867a95..e4ec0e38 100644 --- a/app/ui/features/settings/taste.test.js +++ b/app/ui/features/settings/taste.test.js @@ -43,7 +43,7 @@ test("nothing recorded yet is said, not shown as a comparison", async () => { assert.match(page.node.textContent, /nothing recorded yet/); }); -test("a failed report still shows the switch, so recording can be turned off", async () => { +test("a failed report still shows the switch, so recording can be turned on", async () => { const sets = []; const app = { api: { tasteKeys: async () => ({ keys: [] }), @@ -79,7 +79,7 @@ test("the block influence readout shows flatness, and Clear asks before it clear assert.match(page.node.textContent, /Clear/); }); -test("a failed status request still shows the switch, so recording can be turned off", async () => { +test("a failed status request still shows the switch, so recording can be turned on", async () => { const sets = []; const app = { api: { tasteKeys: async () => ({ keys: [] }), @@ -93,5 +93,5 @@ test("a failed status request still shows the switch, so recording can be turned const toggle = page.node.querySelector('input[type="checkbox"]'); assert.ok(toggle, "the switch is still there"); toggle.click(); await tick(); await tick(); - assert.deepEqual(sets, [false], "the unknown state shows on, so one click turns it off"); + assert.deepEqual(sets, [true], "recording is opt in: the unknown state shows off, so one click turns it on"); }); diff --git a/app/ui/shell/maintenance.test.js b/app/ui/shell/maintenance.test.js index 25952af4..8789d823 100644 --- a/app/ui/shell/maintenance.test.js +++ b/app/ui/shell/maintenance.test.js @@ -18,4 +18,5 @@ test("Restart ComfyUI says it is restarting once, not twice", async () => { teardownDom(); assert.equal(said, 1, "the working card repeats the restarting line"); }); +// The restart card polls the stopped server forever by design, so the process is ended when the test is done. test.after(() => setTimeout(() => process.exit(0), 10));