mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 21:34:46 +00:00
test: check browser doctor notes
This commit is contained in:
@@ -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",
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user