From 64f8f18555e84ea9f2cb4333461e1f09e6eb0f03 Mon Sep 17 00:00:00 2001 From: Aaron Qian Date: Tue, 22 Sep 2026 20:14:13 -0700 Subject: [PATCH] test: reboot keeps the seeded calibration, factory wipes it like hardware --- tests/e2e/manage.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/e2e/manage.spec.ts b/tests/e2e/manage.spec.ts index 44c7ecf..da70c59 100644 --- a/tests/e2e/manage.spec.ts +++ b/tests/e2e/manage.spec.ts @@ -36,6 +36,10 @@ test("Reboot rescans and the servo answers again", async ({ page }) => { await expect(card.getByText("Rebooting .. back in a moment.")).toBeVisible(); await expect(page.getByRole("button", { name: "ID 2" })).toBeVisible(); await expect(page.getByRole("heading", { name: "ID 2" })).toBeVisible(); + // The seed is SAVEd like a bench calibration, so the reboot boots it back. + await expect( + page.getByRole("region", { name: "Calibration" }).getByText("Calibrated", { exact: true }), + ).toBeVisible(); }); test("Factory reset runs behind the confirm strip", async ({ page }) => { @@ -56,8 +60,8 @@ test("Factory reset runs behind the confirm strip", async ({ page }) => { await expect(erase).toBeHidden(); await expect(card.getByText("Erased. It comes back as ID 1 at 1 M.")).toBeVisible(); await expect(page.getByRole("button", { name: "ID 2" })).toBeVisible(); - // The seeded calibration is written into the servo's live table, never into - // its store, so the wipe reboots it onto board defaults and it reads blank. + // Hardware FACTORY erases the calibration image with the config, so the + // servo comes back reading blank, exactly like a real one. await expect( page.getByRole("region", { name: "Calibration" }).getByText("Not calibrated"), ).toBeVisible();