mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
refactor(dsh-plugin): simplify browser commands
This commit is contained in:
@@ -71,7 +71,9 @@ describe("SessionRegistry", () => {
|
||||
|
||||
it("resolve throws actionable guidance when no session exists", () => {
|
||||
const registry = new SessionRegistry(5);
|
||||
expect(() => registry.resolve(undefined, "browser_click")).toThrow(/browser_session_start/);
|
||||
expect(() => registry.resolve(undefined, "browser_interact(action=click)")).toThrow(
|
||||
/browser_session action=start/,
|
||||
);
|
||||
});
|
||||
|
||||
it("recency order survives remove of the current session", () => {
|
||||
|
||||
Reference in New Issue
Block a user