mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-20 05:07:34 +00:00
13 lines
500 B
TypeScript
13 lines
500 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { BrowserTabNotFoundError } from "./errors.js";
|
|
|
|
describe("BrowserTabNotFoundError", () => {
|
|
it("teaches agents that bare numbers are not stable tab targets", () => {
|
|
const err = new BrowserTabNotFoundError({ input: "2" });
|
|
|
|
expect(err.message).toContain('browser tab "2" not found');
|
|
expect(err.message).toContain("Numeric values are not tab targets");
|
|
expect(err.message).toContain("openclaw browser tab select 2");
|
|
});
|
|
});
|