test: check browser doctor notes · openclaw/openclaw@2a42e47
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,11 @@ describe("browser doctor readiness", () => {
|
43 | 43 | ); |
44 | 44 | |
45 | 45 | expect(noteFn).toHaveBeenCalledWith( |
46 | | -expect.stringContaining("No Chromium-based browser executable was found on this host"), |
| 46 | +[ |
| 47 | +"- OpenClaw-managed browser profile(s) are configured: openclaw.", |
| 48 | +"- No Chromium-based browser executable was found on this host for OpenClaw-managed launch.", |
| 49 | +"- Install Chrome, Chromium, Brave, Edge, or set browser.executablePath explicitly.", |
| 50 | +].join("\n"), |
47 | 51 | "Browser", |
48 | 52 | ); |
49 | 53 | }); |
@@ -70,11 +74,11 @@ describe("browser doctor readiness", () => {
|
70 | 74 | ); |
71 | 75 | |
72 | 76 | expect(noteFn).toHaveBeenCalledWith( |
73 | | -expect.stringContaining("No DISPLAY or WAYLAND_DISPLAY is set"), |
74 | | -"Browser", |
75 | | -); |
76 | | -expect(noteFn).toHaveBeenCalledWith( |
77 | | -expect.stringContaining("browser.noSandbox: true"), |
| 77 | +[ |
| 78 | + "- OpenClaw-managed browser profile(s) are configured: openclaw.", |
| 79 | + "- No DISPLAY or WAYLAND_DISPLAY is set, and browser.headless is false. Managed browser launch needs a desktop session, Xvfb, or browser.headless: true.", |
| 80 | + "- The Gateway is running as root and browser.noSandbox is false. Chromium commonly requires browser.noSandbox: true in container/root runtimes.", |
| 81 | +].join("\n"), |
78 | 82 | "Browser", |
79 | 83 | ); |
80 | 84 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。