mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 23:10:29 +00:00
test: keep browser subpath test import-only
This commit is contained in:
@@ -9,11 +9,9 @@ import {
|
||||
|
||||
describe("plugin-sdk browser subpaths", () => {
|
||||
it("keeps browser profile helpers available on the narrow subpath", () => {
|
||||
const resolved = resolveBrowserConfig(undefined, { gateway: { port: 18789 } });
|
||||
expect(DEFAULT_OPENCLAW_BROWSER_ENABLED).toBe(true);
|
||||
expect(DEFAULT_BROWSER_DEFAULT_PROFILE_NAME).toBe("openclaw");
|
||||
expect(resolved.controlPort).toBeTypeOf("number");
|
||||
expect(resolved.ssrfPolicy).toEqual({});
|
||||
expect(resolveBrowserConfig).toBeTypeOf("function");
|
||||
});
|
||||
|
||||
it("parses and redacts CDP urls on the dedicated CDP subpath", () => {
|
||||
@@ -23,17 +21,6 @@ describe("plugin-sdk browser subpaths", () => {
|
||||
});
|
||||
|
||||
it("resolves browser control auth on the dedicated auth subpath", () => {
|
||||
expect(
|
||||
resolveBrowserControlAuth(
|
||||
{
|
||||
gateway: {
|
||||
auth: {
|
||||
token: "token-1",
|
||||
},
|
||||
},
|
||||
},
|
||||
{},
|
||||
),
|
||||
).toEqual({ token: "token-1", password: undefined });
|
||||
expect(resolveBrowserControlAuth).toBeTypeOf("function");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user