Vedha
v0.1.2Browser testing on Playwright that checks the server, not just the screen, before it reports a pass.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
vedha_act
Run a browser action (goto, click, fill, press, ...) and return its outcome, what Vedha observed, and the page. Optional `then` chains follow-up steps.
| Parameter | Type | Description |
|---|---|---|
intent * | string | why |
op * | string | |
confirms | string | id of an unresolved step this one confirms |
destructive | boolean | irreversible; needs operator approval |
enabling | boolean | only prepares a later step |
expect | object | checks Vedha runs after the action |
mutating | boolean | changes data; not repeated after an unknown outcome |
reconcile | object | GET returning an item matching `matches` iff the effect happened |
repeat | boolean | repeat a mutating action of unknown outcome |
synchronous | boolean | client-side effect: unmet expect is a failure |
target | object | one of: role(+name), label, text, test_id, ref |
then | array | steps to run next; stops at the first that fails |
to | object | drag target |
value | string | url, text, option, key, path, direction or tab |
vedha_observe
Read the current page without acting: an accessibility outline by default, `controls` for interactive elements only, or `region`/`detail` for one subtree by ref. Read-only.
| Parameter | Type | Description |
|---|---|---|
level | string | |
ref | string | subtree ref |
vedha_probe
Read server state with a GET to a same-origin JSON path (such as /api/orders) without leaving the page. Use it to confirm whether a write took effect. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string |
vedha_report
Overall verdict and each step's status (verified, failed, outcome_unknown, unverified, blocked) with errors and recoveries so far. Read-only.
vedha_promote
Generate a Playwright Test spec from the verified steps so far, with its assumptions listed. Pass `file` to save it under --out.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
title * | string | |
file | string | file under --out |
vedha_bundle
Save a failure bundle under --out: goal, steps, verdicts, network summary and a screenshot, replayable with `vedha replay`.
| Parameter | Type | Description |
|---|---|---|
goal * | string |
vedha_close
Close the browser and end the session.