This commit is contained in:
Josh Hawkins
2026-06-09 16:24:16 -05:00
parent 50591cb2fa
commit 470abbab9d
3 changed files with 18 additions and 2 deletions
@@ -148,6 +148,20 @@ test.describe("Camera wizard PTZ pane @medium @mobile", () => {
).toBeDisabled();
});
test("shows the pane but leaves the switch off when no presets are found", async ({
frigateApp,
}) => {
await mockProbe(frigateApp.page, { ...PTZ_PROBE, presets_count: 0 });
const dialog = await gotoStep3(frigateApp.page);
await expect(
dialog.getByText("Enable PTZ Controls", { exact: true }),
).toBeVisible();
await expect(ptzSwitch(dialog)).not.toBeChecked();
// with the switch off, the connection fields are not shown
await expect(dialog.getByPlaceholder("192.168.1.100")).toHaveCount(0);
});
test("hides the PTZ pane when the probe reports no PTZ support", async ({
frigateApp,
}) => {