test: check browser doctor notes

This commit is contained in:
Shakker
2026-05-11 15:57:51 +01:00
parent 0c9f34eac1
commit 2a42e4743f

View File

@@ -43,7 +43,11 @@ describe("browser doctor readiness", () => {
);
expect(noteFn).toHaveBeenCalledWith(
expect.stringContaining("No Chromium-based browser executable was found on this host"),
[
"- OpenClaw-managed browser profile(s) are configured: openclaw.",
"- No Chromium-based browser executable was found on this host for OpenClaw-managed launch.",
"- Install Chrome, Chromium, Brave, Edge, or set browser.executablePath explicitly.",
].join("\n"),
"Browser",
);
});
@@ -70,11 +74,11 @@ describe("browser doctor readiness", () => {
);
expect(noteFn).toHaveBeenCalledWith(
expect.stringContaining("No DISPLAY or WAYLAND_DISPLAY is set"),
"Browser",
);
expect(noteFn).toHaveBeenCalledWith(
expect.stringContaining("browser.noSandbox: true"),
[
"- OpenClaw-managed browser profile(s) are configured: openclaw.",
"- No DISPLAY or WAYLAND_DISPLAY is set, and browser.headless is false. Managed browser launch needs a desktop session, Xvfb, or browser.headless: true.",
"- The Gateway is running as root and browser.noSandbox is false. Chromium commonly requires browser.noSandbox: true in container/root runtimes.",
].join("\n"),
"Browser",
);
});