add an account step to the setup wizard

This commit is contained in:
Josh Hawkins
2026-08-26 12:01:57 -05:00
parent e0a869de25
commit 9e04bc2d97
4 changed files with 248 additions and 1 deletions
+8
View File
@@ -34,6 +34,14 @@ export async function installFirstRun(
export async function gotoDetectorStep(page: Page, addCamera: () => void) {
await page.getByRole("button", { name: "Get Started" }).click();
// the account step sits between welcome and camera whenever auth is on,
// which the default mock config has it
await expect(
page.getByRole("heading", { name: "Secure your account" }),
).toBeVisible();
await page.getByRole("button", { name: "Skip" }).click();
await expect(page.getByText("Add Your First Camera")).toBeVisible();
// the camera step's Next only renders once its local addedCameras fills,