status: READY state gains 'Check for updates' button wired to the sync flow (previously no way to pull a newer package once READY)

This commit is contained in:
Lumen Stage1 2026-10-05 10:44:47 -05:00
commit bb40c96f98
2 changed files with 15 additions and 0 deletions

View file

@ -72,6 +72,17 @@ describe("Status view", () => {
expect(view.querySelectorAll(".status-check--ok")).toHaveLength(2);
});
it("READY offers Check for updates wired to the sync flow", () => {
const a = actions();
const view = createStatusView(report(), a);
const btn = [...view.querySelectorAll("button")].find(
(b) => b.textContent === "Check for updates",
);
expect(btn).toBeTruthy();
btn?.dispatchEvent(new MouseEvent("click"));
expect(a.onGetData).toHaveBeenCalledTimes(1);
});
it("PARTIAL enumerates missing and offers Continue setup", () => {
const a = actions();
const view = createStatusView(