test: tighten browser profile assertion · openclaw/openclaw@a07802e
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
File tree
extensions/browser/src/browser
| Original file line number | Diff line number | Diff line change |
|---|
@@ -706,14 +706,15 @@ describe("browser config", () => {
|
706 | 706 | }, |
707 | 707 | }); |
708 | 708 | const profile = resolveProfile(resolved, "chrome-live"); |
709 | | -expect(profile).not.toBeNull(); |
710 | | -expect(profile?.driver).toBe("existing-session"); |
711 | | -expect(profile?.attachOnly).toBe(true); |
712 | | -expect(profile?.cdpPort).toBe(0); |
713 | | -expect(profile?.cdpUrl).toBe(""); |
714 | | -expect(profile?.cdpIsLoopback).toBe(true); |
| 709 | +expect(profile).toMatchObject({ |
| 710 | +driver: "existing-session", |
| 711 | +attachOnly: true, |
| 712 | +cdpPort: 0, |
| 713 | +cdpUrl: "", |
| 714 | +cdpIsLoopback: true, |
| 715 | +color: "#00AA00", |
| 716 | +}); |
715 | 717 | expect(profile?.userDataDir).toBeUndefined(); |
716 | | -expect(profile?.color).toBe("#00AA00"); |
717 | 718 | }); |
718 | 719 | |
719 | 720 | it("expands tilde-prefixed userDataDir for existing-session profiles", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。