test(webui): tolerate wrapped bootstrap CLI output

This commit is contained in:
Xubin Ren
2026-07-08 21:01:48 +08:00
parent 4ddd639e67
commit 3ab09075c5
+1 -1
View File
@@ -1672,7 +1672,7 @@ def test_webui_yes_creates_config_and_enables_local_websocket(
assert data["agents"]["defaults"]["workspace"] == str(workspace)
assert seen["templates"] == workspace
assert seen["gateway_kwargs"] == {"port": 18888, "open_browser_url": None}
compact_output = _strip_ansi(result.stdout).replace("\n", " ")
compact_output = re.sub(r"\s+", " ", _strip_ansi(result.stdout))
assert "bootstrap secret was generated" in compact_output
assert "channels.websocket.tokenIssueSecret" in compact_output
assert "rerun without --no-open" in compact_output