Skip to content

The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.

374 B
Raw Blame
import test from "node:test";
import assert from "node:assert/strict";

import { parseRef } from "../dist/src/ref-map.js";

test("parseRef accepts action forms but not the full snapshot annotation", () => {
  assert.equal(parseRef("@21"), "21");
  assert.equal(parseRef("ref=21"), "21");
  assert.equal(parseRef("21"), "21");
  assert.equal(parseRef("[ref=21]"), null);
});