@desplega.ai/qa-use 2.15.3 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/api/index.d.ts +11 -0
- package/dist/lib/api/index.d.ts.map +1 -1
- package/dist/lib/api/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/cli/commands/test/diff.d.ts.map +1 -1
- package/dist/src/cli/commands/test/diff.js +50 -2
- package/dist/src/cli/commands/test/diff.js.map +1 -1
- package/dist/src/cli/commands/test/index.d.ts.map +1 -1
- package/dist/src/cli/commands/test/index.js +2 -0
- package/dist/src/cli/commands/test/index.js.map +1 -1
- package/dist/src/cli/commands/test/info.d.ts.map +1 -1
- package/dist/src/cli/commands/test/info.js +52 -7
- package/dist/src/cli/commands/test/info.js.map +1 -1
- package/dist/src/cli/commands/test/run.d.ts.map +1 -1
- package/dist/src/cli/commands/test/run.js +27 -1
- package/dist/src/cli/commands/test/run.js.map +1 -1
- package/dist/src/cli/commands/test/vars/index.d.ts +10 -0
- package/dist/src/cli/commands/test/vars/index.d.ts.map +1 -0
- package/dist/src/cli/commands/test/vars/index.js +16 -0
- package/dist/src/cli/commands/test/vars/index.js.map +1 -0
- package/dist/src/cli/commands/test/vars/list.d.ts +10 -0
- package/dist/src/cli/commands/test/vars/list.d.ts.map +1 -0
- package/dist/src/cli/commands/test/vars/list.js +96 -0
- package/dist/src/cli/commands/test/vars/list.js.map +1 -0
- package/dist/src/cli/commands/test/vars/set.d.ts +31 -0
- package/dist/src/cli/commands/test/vars/set.d.ts.map +1 -0
- package/dist/src/cli/commands/test/vars/set.js +249 -0
- package/dist/src/cli/commands/test/vars/set.js.map +1 -0
- package/dist/src/cli/commands/test/vars/unset.d.ts +12 -0
- package/dist/src/cli/commands/test/vars/unset.d.ts.map +1 -0
- package/dist/src/cli/commands/test/vars/unset.js +86 -0
- package/dist/src/cli/commands/test/vars/unset.js.map +1 -0
- package/dist/src/cli/generated/docs-content.d.ts +1 -1
- package/dist/src/cli/generated/docs-content.d.ts.map +1 -1
- package/dist/src/cli/generated/docs-content.js +75 -1
- package/dist/src/cli/generated/docs-content.js.map +1 -1
- package/dist/src/cli/lib/output.d.ts.map +1 -1
- package/dist/src/cli/lib/output.js +14 -1
- package/dist/src/cli/lib/output.js.map +1 -1
- package/dist/src/cli/lib/test-vars.d.ts +90 -0
- package/dist/src/cli/lib/test-vars.d.ts.map +1 -0
- package/dist/src/cli/lib/test-vars.js +167 -0
- package/dist/src/cli/lib/test-vars.js.map +1 -0
- package/dist/src/cli/lib/uuid.d.ts +9 -0
- package/dist/src/cli/lib/uuid.d.ts.map +1 -0
- package/dist/src/cli/lib/uuid.js +11 -0
- package/dist/src/cli/lib/uuid.js.map +1 -0
- package/dist/src/server.js +1 -1
- package/dist/src/server.js.map +1 -1
- package/dist/src/types/test-definition.d.ts +123 -20
- package/dist/src/types/test-definition.d.ts.map +1 -1
- package/dist/src/types/test-definition.js +2 -2
- package/lib/api/index.ts +11 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT EDIT MANUALLY — Generated from plugins/qa-use/skills/qa-use/
|
|
4
4
|
* Run 'bun run generate:docs' to regenerate.
|
|
5
5
|
*/
|
|
6
|
-
export declare const MAIN_DOC = "---\nname: qa-use\ndescription: E2E testing and browser automation with qa-use CLI. Use when the user needs to run tests, verify features, automate browser interactions, or debug test failures.\nallowed-tools: Bash(qa-use *)\n---\n\n# qa-use\n\nE2E testing and browser automation for AI-driven development workflows.\n\n## Critical Insight: Plugin Commands as Shortcuts\n\n**For AI Harnesses (codex, opencode, etc.):**\n\nPlugin commands (slash commands like `/qa-use:verify`) are **convenience shortcuts** that wrap CLI workflows. Harnesses with only the Bash tool can access ALL functionality via CLI commands documented below.\n\n**Pattern throughout this document:**\n- **CLI Workflow**: Step-by-step CLI commands (works for ALL harnesses)\n- **Plugin Shortcut**: Optional slash command (convenience)\n\n## Setup & Configuration\n\nBefore using any qa-use commands, verify configuration is in place:\n\n```bash\n# Check current configuration (no-op if already configured)\nqa-use setup\n\n# Configure with API key (validates against server)\nqa-use setup --api-key <key>\n\n# View full configuration details\nqa-use info\n```\n\n**Environment Variables (alternative to config file):**\n\n| Variable | Description |\n|----------|-------------|\n| `QA_USE_API_KEY` | API key for authentication |\n| `QA_USE_REGION` | Region: `us` (default) or `auto` |\n| `QA_USE_API_URL` | Override API base URL |\n\n**Config file:** `.qa-use.json` in the project directory or `~/.qa-use.json` in the home directory. Precedence: env vars > project `.qa-use.json` > `~/.qa-use.json`.\n\n**If you encounter \"API key not configured\", 401, or auth errors:** Run `qa-use setup` to check config state. NEVER fabricate or guess API keys.\n\n## Core Workflow\n\n### 1. Browser Control & Session Lifecycle\n\n**CLI Workflow:**\n```bash\n# Create browser session (returns immediately \u2014 runs detached in the background)\nqa-use browser create --viewport desktop\n\n# For localhost testing \u2014 auto-tunnels when base URL is localhost and API is remote.\n# No flag needed for the common case:\nqa-use browser create --no-headless http://localhost:3000\n\n# Force a tunnel even in dev mode:\nqa-use browser create --tunnel on --no-headless\n\n# Opt out of auto-tunnel (e.g. backend is also local):\nqa-use browser create --no-tunnel\n\n# Navigate\nqa-use browser goto https://example.com\n\n# Snapshot to get element refs (ALWAYS do this before interacting)\nqa-use browser snapshot\n\n# Interact by ref\nqa-use browser click e3\nqa-use browser fill e5 \"text\"\n\n# Close\nqa-use browser close\n```\n\n**Background session management:**\n\n`qa-use browser create` returns immediately \u2014 the actual browser + tunnel run in a detached child process so your terminal stays free. Manage sessions with:\n\n```bash\nqa-use browser status --list # Show all active sessions across processes\nqa-use browser status # Details for the auto-resolved session\nqa-use browser close <id> # Close a specific session\nqa-use doctor # Reap stale sessions/tunnels (dead PIDs)\nqa-use doctor --dry-run # Preview what would be cleaned\n```\n\n**Tunnel commands:**\n\nCross-process tunnel registry \u2014 multiple commands share a single tunnel per target:\n\n```bash\nqa-use tunnel start <url> # Acquire a tunnel (released immediately unless --hold)\nqa-use tunnel start <url> --hold # Keep the tunnel up until Ctrl+C\nqa-use tunnel ls # List active tunnels (target, public URL, refcount)\nqa-use tunnel status <target> # Detail for a single tunnel\nqa-use tunnel close <target> # Force-release a tunnel (kills detached holders)\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:explore https://example.com\n```\n(Wraps create + goto + snapshot with autonomous exploration)\n\n**Critical:** Always run `snapshot` before your **first** interaction on a page. Never guess element refs.\n\n**Snapshot Diff Feature (use it to avoid unnecessary snapshots):**\nAfter each action (goto, click, fill, etc.), the browser automatically shows DOM changes:\n- **Summary**: \"5 elements added, 1 element modified\"\n- **Added elements**: `+ [e54] generic \"Thanks for agreeing!\"` (green)\n- **Modified elements**: `~ [e18] checkbox \"I agree...\"` with `+attrs: checked, active` (yellow)\n- **Removed elements**: `- [e99] button \"Submit\"` (red)\n\n**When you can skip a full `snapshot`:** If the diff output from your last action already shows the element ref you need to interact with next, use it directly \u2014 no need for an intermediate `snapshot`. For example, if clicking a button shows `+ [e54] button \"Submit\"` in the diff, you can `click e54` immediately.\n\n**When you still need a full `snapshot`:** Run `snapshot` when you need to find elements that weren't in the diff (e.g., pre-existing elements you haven't interacted with yet), or when the diff was truncated (shows \"... and N more changes\").\n\n### 2. Understanding Blocks\n\n**What are blocks?**\n\nBlocks are atomic recorded interactions from a browser session. They are:\n- Automatically captured during any browser interaction (click, fill, goto, scroll, etc.)\n- Stored server-side with the session\n- Retrieved via `qa-use browser get-blocks`\n- The foundation for test generation\n\n**Why blocks matter:**\n- **Record-once, replay-many**: Interactive recording becomes automated test\n- **AI-friendly**: Agents can analyze blocks to understand user intent\n- **Version control**: Blocks stored with session enable test iteration\n- **Bridge CLI \u2192 Tests**: Natural workflow from exploration to automation\n\n**How blocks work:**\n\n```bash\n# 1. Create session and interact (auto-tunnels localhost)\nqa-use browser create --no-headless\nqa-use browser goto https://example.com\nqa-use browser snapshot # Returns: [ref=e1] button\nqa-use browser click e1 # Records as block\nqa-use browser fill e5 \"text\" # Records as block\n\n# 2. Retrieve blocks (JSON array)\nqa-use browser get-blocks\n# Returns:\n# [\n# {\"type\": \"goto\", \"url\": \"...\", \"timestamp\": \"...\"},\n# {\"type\": \"click\", \"ref\": \"e1\", \"timestamp\": \"...\"},\n# {\"type\": \"fill\", \"ref\": \"e5\", \"value\": \"text\", \"timestamp\": \"...\"}\n# ]\n\n# 3. Generate test YAML from blocks\nqa-use browser generate-test -n \"my_test\" -o qa-tests/my_test.yaml\n\n# 4. Run generated test\nqa-use test run my_test\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record start my_test\n# ... perform interactions ...\n/qa-use:record stop\n```\n(Wraps the interactive workflow with AI-powered test generation)\n\n### 3. Test Management\n\n**CLI Workflow:**\n```bash\n# Run test by name\nqa-use test run login\n\n# Run and save the (non-synced) local test to cloud\nqa-use test run login --persist\n\n# Validate syntax\nqa-use test validate login\n\n# Show test details\nqa-use test info login\n\n# List test runs\nqa-use test runs --status failed\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:test-run login\n```\n(Convenience shortcut for common test execution)\n\n### 4. Test Sync Lifecycle\n\n**CLI Workflow:**\n```bash\n# Pull tests from cloud\nqa-use test sync pull\n\n# Push all local tests to cloud\nqa-use test sync push --all\n\n# Push specific test\nqa-use test sync push --id <uuid>\n\n# Force push (overwrite conflicts)\nqa-use test sync push --force\n\n# Compare local vs cloud\nqa-use test diff login.yaml\n```\n\n**Persist vs Sync:**\n\nA local test is **synced** when its YAML has both an `id:` and a `version_hash:`\n(these are written back by `test sync push`/`pull`). `--persist` on `test run`\nand `qa-use test sync` are related but not the same:\n\n| Local file state | `persist` | What happens at run time |\n|---|---|---|\n| Non-synced | `false` (default) | Runs locally; nothing saved to cloud. Re-run with `--persist` or use `test sync push` to persist. |\n| Non-synced | `true` | Test is uploaded as a **new** cloud entry after the run. Re-running like this creates **duplicates** \u2014 prefer `test sync push` once the file tracks the cloud id. |\n| Synced | `false` | Runs against the cloud-tracked definition; no extra write. |\n| Synced | `true` | Cloud definition is **upserted** (may overwrite newer cloud edits). Use `test sync push`/`pull` for explicit version control. |\n\nRule of thumb: `test sync push`/`pull` is the deliberate path. Reserve `--persist`\n(or `defaults.persist: true` in `.qa-use.json`) for one-off uploads of brand-new\nlocal tests.\n\n**No Plugin Shortcut** - Use CLI commands directly\n\n## Essential Commands\n\n### Browser Session Management\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser create` | Create remote browser session |\n| `qa-use browser create <url>` | Create session and navigate to URL |\n| `qa-use browser create --tunnel [auto\\|on\\|off]` | Tunnel mode \u2014 default `auto` (localhost + remote API). `--no-tunnel` is sugar for `off`. |\n| `qa-use browser create --no-headless` | Show browser window (paired with a local/tunnel browser) |\n| `qa-use browser create --viewport <size>` | Set viewport: `desktop`, `tablet`, `mobile` |\n| `qa-use browser create --ws-url <url>` | Connect to existing WebSocket browser |\n| `qa-use browser create --after-test-id <uuid>` | Run a test first, then become interactive |\n| `qa-use browser create --var <key=value>` | Override app config variables (repeatable) |\n| `qa-use browser list` | List active sessions |\n| `qa-use browser status` | Show current session details (app_url, recording_url, etc.) |\n| `qa-use browser status --list` | Show all active sessions across processes |\n| `qa-use browser close` | Close active session |\n| `qa-use browser close <id>` | Close a specific session by id |\n| `qa-use doctor` | Reap stale sessions/tunnels (dead PIDs) |\n| `qa-use tunnel ls` | List active tunnels in the registry |\n| `qa-use tunnel start <url> --hold` | Hold a public tunnel for external consumers |\n\nSessions auto-persist in `~/.qa-use.json`. One active session = no `-s` flag needed. `browser create` returns immediately \u2014 the browser + tunnel run in a detached child. Use `qa-use doctor` if stale state accumulates.\n\n### Navigation\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser goto <url>` | Navigate to URL |\n| `qa-use browser back` | Go back |\n| `qa-use browser forward` | Go forward |\n| `qa-use browser reload` | Reload page |\n\n### Element Interaction\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser click <ref>` | Click element by ref |\n| `qa-use browser click --text \"Button\"` | Click by semantic description |\n| `qa-use browser fill <ref> \"value\"` | Fill input field |\n| `qa-use browser type <ref> \"text\"` | Type with delays (for autocomplete) |\n| `qa-use browser press <key>` | Press key (e.g., `Enter`, `Tab`) |\n| `qa-use browser check <ref>` | Check checkbox |\n| `qa-use browser uncheck <ref>` | Uncheck checkbox |\n| `qa-use browser select <ref> \"option\"` | Select dropdown option |\n| `qa-use browser hover <ref>` | Hover over element |\n| `qa-use browser scroll down 500` | Scroll by pixels |\n| `qa-use browser scroll-into-view <ref>` | Scroll element into view |\n| `qa-use browser drag <ref> --target <ref>` | Drag element to target |\n| `qa-use browser mfa-totp [ref] <secret>` | Generate TOTP code (optionally fill) |\n| `qa-use browser upload <ref> <file>...` | Upload file(s) to input (base64-encoded, works remote & tunnel) |\n\n### Inspection & Snapshot Diff\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser snapshot` | Get full ARIA tree with element refs (use only when diff output is insufficient) |\n| `qa-use browser url` | Get current URL |\n| `qa-use browser screenshot` | Save screenshot.png |\n| `qa-use browser screenshot file.png` | Save to custom path |\n| `qa-use browser screenshot --base64` | Output base64 to stdout |\n| `qa-use browser evaluate <expression>` | Execute JavaScript in browser context |\n\nThe snapshot-diff feature automatically displays DOM changes after each browser action:\n- **Added elements**: Shown with `+` prefix and green color \u2014 these refs are immediately usable\n- **Modified elements**: Shown with `~` prefix and yellow color, including attribute changes (`+attrs: checked`)\n- **Removed elements**: Shown with `-` prefix and red color \u2014 do NOT use these refs\n\n**Downloads:** When an action triggers a file download (e.g., clicking a download link), the response includes download info: filename, size, and a presigned URL. Use `qa-use browser downloads` to list all downloads or `--save <dir>` to save them locally.\n\nUse diff output to interact with newly appeared elements directly, without running a full `snapshot` first.\n\n### Test Operations\n\n| Command | Description |\n|---------|-------------|\n| `qa-use test run <name>` | Run test by name |\n| `qa-use test run --all` | Run all tests |\n| `qa-use test run <name> --tunnel [mode]` | Override tunnel mode (`auto`, `on`, `off`). `--no-tunnel` is sugar for `off`. Bare `--tunnel` is sugar for `on`. |\n| `qa-use test run <name> --download` | Download assets to `/tmp/qa-use/downloads/` |\n| `qa-use test run <name> --var key=value` | Override variable |\n| `qa-use test validate <name>` | Validate test syntax |\n| `qa-use test list` | List available tests |\n| `qa-use test info <name>` | Show test details (steps, tags, description) |\n| `qa-use test info --id <uuid>` | Show cloud test details by ID |\n| `qa-use test runs [name]` | List test run history |\n| `qa-use test runs --id <uuid>` | Filter runs by test ID |\n| `qa-use test runs --status failed` | Filter runs by status |\n| `qa-use test init` | Initialize test directory |\n| `qa-use test sync pull` | Pull tests from cloud |\n| `qa-use test sync push --all` | Push all local tests to cloud |\n| `qa-use test sync push --id <uuid>` | Push specific test |\n| `qa-use test sync push --force` | Push tests, overwriting conflicts |\n| `qa-use test diff <file>` | Compare local vs cloud test |\n| `qa-use test schema [path]` | View test definition schema |\n\n### API Operations (Dynamic OpenAPI)\n\n`qa-use api` dynamically discovers operations from `/api/v1/openapi.json` and caches metadata locally for offline fallback.\n\n| Command | Description |\n|---------|-------------|\n| `qa-use api` | Show help and available subcommands |\n| `qa-use api ls` | List available `/api/v1/*` routes from OpenAPI |\n| `qa-use api ls --refresh` | Force refresh OpenAPI cache |\n| `qa-use api ls --offline` | Use cached OpenAPI metadata only |\n| `qa-use api info /api/v1/<route>` | Show route details: parameters, request body, responses |\n| `qa-use api info /api/v1/<route> -X POST` | Show info for specific HTTP method |\n| `qa-use api info /api/v1/<route> --json` | Route info as JSON |\n| `qa-use api examples` | Show usage examples |\n| `qa-use api openapi` | Print OpenAPI spec URL |\n| `qa-use api openapi --raw` | Dump full OpenAPI spec as JSON |\n| `qa-use api /api/v1/tests` | Call endpoint (method inferred when possible) |\n| `qa-use api -X GET /api/v1/test-runs -f limit=5` | GET with query fields |\n| `qa-use api -X POST /api/v1/tests-actions/run --input body.json` | POST with JSON body file |\n| `qa-use api -X GET /api/v1/test-runs/<id>` | Fetch detail endpoint by ID |\n\n**No Plugin Shortcut** - Use CLI commands directly.\n\n### Logs & Debugging\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser logs console` | View console logs from session |\n| `qa-use browser logs console -s <id>` | View logs from specific/closed session |\n| `qa-use browser logs network` | View network request logs |\n| `qa-use browser logs network -s <id>` | View network logs from specific session |\n| `qa-use browser downloads` | List downloaded files from session |\n| `qa-use browser downloads --save <dir>` | Save downloaded files to local directory |\n| `qa-use browser downloads --json` | Output download info as JSON |\n\n### Test Generation\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser generate-test` | Generate test YAML from recorded session |\n| `qa-use browser generate-test -s <id>` | Generate from specific session |\n| `qa-use browser generate-test -n <name>` | Specify test name |\n| `qa-use browser generate-test -o <path>` | Specify output path |\n| `qa-use browser get-blocks` | Get recorded interaction blocks (JSON) |\n\n### Waiting\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser wait <ms>` | Fixed wait |\n| `qa-use browser wait-for-selector \".class\"` | Wait for selector |\n| `qa-use browser wait-for-load` | Wait for page load |\n\n### Variable Overrides\n\nUse `--var` to override app config variables at runtime. Common variables:\n\n| Variable | Description |\n|----------|-------------|\n| `base_url` | Base URL for the app (e.g., preview deployment URL) |\n| `login_url` | Login page URL |\n| `login_username` | Username/email for authentication |\n| `login_password` | Password for authentication |\n\nExample with ephemeral preview URL:\n```bash\nqa-use browser create --after-test-id <login-test-uuid> \\\n --var base_url=https://preview-123.example.com \\\n --var login_url=https://preview-123.example.com/auth/login\n```\n\n## Common Patterns\n\n### Pattern 1: Feature Verification\n\n**CLI Workflow:**\n```bash\n# 1. Search for existing test\nqa-use test list | grep \"login\"\n\n# 2. Run test\nqa-use test run login\n\n# 3. Debug failures\nqa-use browser logs console\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:verify \"login works with valid credentials\"\n```\n(Wraps the above CLI workflow with AI-powered test discovery and analysis)\n\n### Pattern 2: Record & Generate Test\n\n**CLI Workflow:**\n```bash\n# 1. Create session (auto-tunnels localhost targets)\nqa-use browser create --no-headless\n\n# 2. Navigate and interact\nqa-use browser goto https://example.com\nqa-use browser snapshot\nqa-use browser click e1\nqa-use browser fill e5 \"test\"\n\n# 3. Generate test from blocks\nqa-use browser get-blocks\nqa-use browser generate-test -n \"my_test\"\n\n# 4. Run test\nqa-use test run my_test\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record start my_test\n# ... perform interactions ...\n/qa-use:record stop\n```\n\n### Pattern 3: Authenticated Exploration\n\n**CLI Workflow:**\n```bash\n# Create session that runs login test first\nqa-use browser create --after-test-id <login-test-uuid>\n\n# Session now authenticated, explore\nqa-use browser goto /dashboard\nqa-use browser snapshot\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:explore /dashboard\n```\n(Automatically handles auth detection and session creation)\n\n### Pattern 4: Edit Existing Test\n\n**CLI Workflow:**\n```bash\n# 1. Open test file in editor\nvim qa-tests/login.yaml\n\n# 2. Validate syntax\nqa-use test validate login\n\n# 3. Run to verify\nqa-use test run login\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record edit login\n```\n(AI-assisted editing with validation)\n\n### Pattern 5: Using Snapshot Diff to Avoid Unnecessary Snapshots\n\n**CLI Workflow:**\n```bash\n# Create session and navigate\nqa-use browser create --no-headless\nqa-use browser goto https://evals.desplega.ai/checkboxes\n\n# goto shows diff \u2014 initial page load shows all elements:\n# Changes: 45 elements added\n# + [e18] checkbox \"I agree to the terms and conditions\"\n# + [e19] generic \"I agree to the terms and conditions\"\n\n# \u2705 Use ref from diff directly \u2014 no snapshot needed!\nqa-use browser click e18\n\n# Diff shows what changed:\n# Changes: 5 elements added, 1 element modified\n# + [e54] generic \"Thanks for agreeing!\"\n# + [e55] link \"Terms and Conditions\"\n# ~ [e18] checkbox \"I agree to the terms and conditions\"\n# +attrs: active, checked\n\n# \u2705 Can click e55 directly from diff output \u2014 no snapshot needed!\nqa-use browser click e55\n\n# \u274C Need to find an element NOT in the diff? Now run snapshot:\nqa-use browser snapshot\n```\n\n**Key principle:** Use diff output as your primary source of element refs after actions. Only fall back to `snapshot` when you need to find elements that weren't in the diff.\n\n**Benefits:**\n- Fewer API calls = faster automation\n- Diff refs are always fresh (just returned from the server)\n- Instantly see what changed (new elements, attribute changes, removals)\n\n**No Plugin Shortcut** - Automatic feature in all browser commands\n\n## CI/CD Integration\n\n### Running Tests in CI\n\n**Environment Variables:**\n```bash\nexport QA_USE_API_KEY=\"your-api-key\"\nexport QA_USE_REGION=\"us\" # Optional: \"us\" or \"auto\"\n```\n\n**Basic Test Execution:**\n```bash\n# Run all tests\nqa-use test run --all\n\n# Run specific tag\nqa-use test run --tag smoke\n\n# Exit codes: 0 = pass, 1 = fail\n```\n\n### GitHub Actions Example\n\n```yaml\nname: QA Tests\non: [push, pull_request]\n\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n - uses: actions/setup-node@v3\n with:\n node-version: '20'\n - name: Install qa-use\n run: npm install -g @desplega.ai/qa-use\n - name: Run tests\n run: qa-use test run --all\n env:\n QA_USE_API_KEY: ${{ secrets.QA_USE_API_KEY }}\n```\n\n### Test Artifacts\n\n**Screenshots:**\n- Automatically saved on failure\n- Location: `/tmp/qa-use/downloads/` (local) or cloud (remote)\n\n**Logs:**\n- Console logs: `qa-use browser logs console -s <session-id>`\n- Network logs: `qa-use browser logs network -s <session-id>`\n\n## Advanced Topics\n\n### Localhost Testing (Auto-Tunnel)\n\n**qa-use auto-tunnels localhost targets when the API is remote.** No flag required for the common case:\n\n```bash\nqa-use browser create --no-headless http://localhost:3000\nqa-use test run my_test # auto-tunnels if base_url is localhost\n```\n\n**Tri-state `--tunnel` flag:**\n\n| Value | Behavior |\n|-------|----------|\n| `auto` (default) | Tunnel iff base URL is localhost AND API URL is remote |\n| `on` (or bare `--tunnel`) | Force a tunnel even in dev mode |\n| `off` (or `--no-tunnel`) | Never tunnel |\n\n```\nTesting localhost (http://localhost:3000)?\n \u251C\u2500 API remote (default) \u2192 auto-tunnels. No flag needed.\n \u251C\u2500 API also local (dev) \u2192 no tunnel by default. Use --tunnel on to force.\n \u2514\u2500 Public URL target \u2192 no tunnel (remote cloud browser)\n```\n\n**Plugin shortcuts handle tunnel detection automatically:**\n```\n/qa-use:explore http://localhost:3000\n/qa-use:record start local_test\n```\n\nSee [references/localhost-testing.md](references/localhost-testing.md) for troubleshooting.\n\n### Session Persistence\n\nSessions are stored in `~/.qa-use.json` and have:\n- **TTL**: 30 minutes (default)\n- **Auto-resolve**: One active session = no `-s` flag needed\n- **Cleanup**: Automatic on timeout or explicit `browser close`\n\n### Block Limitations\n\n**What's captured:**\n- goto, click, fill, type, check, uncheck, select, hover\n- scroll, scroll-into-view, drag, upload, press\n\n**What's NOT captured:**\n- Assertions (must be added manually)\n- Waits (inferred from timing, may need adjustment)\n- Complex interactions (multi-drag, hover sequences)\n\n**Manual editing:** Edit generated YAML to add assertions and refine selectors.\n\n### WebSocket Sessions\n\n**Sharing sessions across processes:**\n```bash\n# Process 1: Create session (auto-tunnels if target is localhost + API remote)\nqa-use browser create http://localhost:3000\n# Output: ws://localhost:12345/browser/abc123\n\n# Process 2: Connect to session\nqa-use browser goto https://example.com --ws-url ws://localhost:12345/browser/abc123\n```\n\n## Deep-Dive References\n\nAccess any reference at runtime via the CLI: `qa-use docs <topic>`\n\n| Topic | CLI Command | Description |\n|-------|-------------|-------------|\n| [browser-commands.md](references/browser-commands.md) | `qa-use docs browser-commands` | Complete browser CLI reference with all flags |\n| [test-format.md](references/test-format.md) | `qa-use docs test-format` | Full test YAML specification |\n| [localhost-testing.md](references/localhost-testing.md) | `qa-use docs localhost-testing` | Tunnel setup for local development |\n| [failure-debugging.md](references/failure-debugging.md) | `qa-use docs failure-debugging` | Failure classification and diagnostics |\n| [ci.md](references/ci.md) | `qa-use docs ci` | CI/CD integration patterns and examples |\n\nUse `qa-use docs --list` to discover all available topics and templates.\n\n## Templates\n\n| Template | Description |\n|----------|-------------|\n| [basic-test.yaml](templates/basic-test.yaml) | Simple navigation and assertion |\n| [auth-flow.yaml](templates/auth-flow.yaml) | Login flow with credentials |\n| [form-test.yaml](templates/form-test.yaml) | Form submission with validation |\n\n## Test Format Overview\n\n```yaml\nname: Login Test\ndescription: Validates login functionality with valid credentials\ntags:\n - smoke\n - auth\napp_config: <app-config-id>\nvariables:\n email: test@example.com\n password: secret123\ndepends_on: setup-test # Optional\nsteps:\n - action: goto\n url: /login\n - action: fill\n target: email input\n value: $email\n - action: click\n target: login button\n - action: to_be_visible\n target: dashboard\n```\n\nSee [references/test-format.md](references/test-format.md) for complete specification.\n\n## Common Mistakes\n\n| \u274C Wrong | \u2705 Correct |\n|---------|-----------|\n| `browser navigate <url>` | `browser goto <url>` |\n| `browser destroy` | `browser close` |\n| `browser close <session-id>` | `browser close` |\n| Guessing element refs | Use refs from diff output or `snapshot` |\n| Running `snapshot` after every action | Use diff output; only `snapshot` when needed |\n| Forcing `--tunnel` in dev (both local) | Rely on auto-mode, or use `--tunnel on` explicitly |\n| `test sync --pull` | `test sync pull` (subcommand, not flag) |\n| `test sync --push` | `test sync push` (subcommand, not flag) |\n\n## Troubleshooting\n\nWhen stuck or encountering unexpected errors, use the built-in documentation:\n\n```bash\n# Check configuration state\nqa-use setup\n\n# Browse main documentation\nqa-use docs\n\n# List all available topics\nqa-use docs --list\n\n# Access specific topic\nqa-use docs <topic>\n```\n\n| Situation | Command |\n|-----------|---------|\n| Auth / API key errors | `qa-use setup` then `qa-use docs` |\n| Unknown browser command | `qa-use docs browser-commands` |\n| Test failures | `qa-use docs failure-debugging` |\n| Localhost / tunnel issues | `qa-use docs localhost-testing` |\n| Test YAML syntax | `qa-use docs test-format` |\n| CI/CD setup | `qa-use docs ci` |\n\n**Key rules:**\n- ALWAYS consult `qa-use docs` before improvising workarounds\n- NEVER fabricate API keys, tokens, URLs, or credentials\n- If `qa-use setup` shows no config, report it \u2014 don't guess\n\n## npx Alternative\n\nAll commands use `qa-use` assuming global install. For one-off use:\n```bash\nnpx @desplega.ai/qa-use browser <command>\n```\n";
|
|
6
|
+
export declare const MAIN_DOC = "---\nname: qa-use\ndescription: E2E testing and browser automation with qa-use CLI. Use when the user needs to run tests, verify features, automate browser interactions, or debug test failures.\nallowed-tools: Bash(qa-use *)\n---\n\n# qa-use\n\nE2E testing and browser automation for AI-driven development workflows.\n\n## Critical Insight: Plugin Commands as Shortcuts\n\n**For AI Harnesses (codex, opencode, etc.):**\n\nPlugin commands (slash commands like `/qa-use:verify`) are **convenience shortcuts** that wrap CLI workflows. Harnesses with only the Bash tool can access ALL functionality via CLI commands documented below.\n\n**Pattern throughout this document:**\n- **CLI Workflow**: Step-by-step CLI commands (works for ALL harnesses)\n- **Plugin Shortcut**: Optional slash command (convenience)\n\n## Setup & Configuration\n\nBefore using any qa-use commands, verify configuration is in place:\n\n```bash\n# Check current configuration (no-op if already configured)\nqa-use setup\n\n# Configure with API key (validates against server)\nqa-use setup --api-key <key>\n\n# View full configuration details\nqa-use info\n```\n\n**Environment Variables (alternative to config file):**\n\n| Variable | Description |\n|----------|-------------|\n| `QA_USE_API_KEY` | API key for authentication |\n| `QA_USE_REGION` | Region: `us` (default) or `auto` |\n| `QA_USE_API_URL` | Override API base URL |\n\n**Config file:** `.qa-use.json` in the project directory or `~/.qa-use.json` in the home directory. Precedence: env vars > project `.qa-use.json` > `~/.qa-use.json`.\n\n**If you encounter \"API key not configured\", 401, or auth errors:** Run `qa-use setup` to check config state. NEVER fabricate or guess API keys.\n\n## Core Workflow\n\n### 1. Browser Control & Session Lifecycle\n\n**CLI Workflow:**\n```bash\n# Create browser session (returns immediately \u2014 runs detached in the background)\nqa-use browser create --viewport desktop\n\n# For localhost testing \u2014 auto-tunnels when base URL is localhost and API is remote.\n# No flag needed for the common case:\nqa-use browser create --no-headless http://localhost:3000\n\n# Force a tunnel even in dev mode:\nqa-use browser create --tunnel on --no-headless\n\n# Opt out of auto-tunnel (e.g. backend is also local):\nqa-use browser create --no-tunnel\n\n# Navigate\nqa-use browser goto https://example.com\n\n# Snapshot to get element refs (ALWAYS do this before interacting)\nqa-use browser snapshot\n\n# Interact by ref\nqa-use browser click e3\nqa-use browser fill e5 \"text\"\n\n# Close\nqa-use browser close\n```\n\n**Background session management:**\n\n`qa-use browser create` returns immediately \u2014 the actual browser + tunnel run in a detached child process so your terminal stays free. Manage sessions with:\n\n```bash\nqa-use browser status --list # Show all active sessions across processes\nqa-use browser status # Details for the auto-resolved session\nqa-use browser close <id> # Close a specific session\nqa-use doctor # Reap stale sessions/tunnels (dead PIDs)\nqa-use doctor --dry-run # Preview what would be cleaned\n```\n\n**Tunnel commands:**\n\nCross-process tunnel registry \u2014 multiple commands share a single tunnel per target:\n\n```bash\nqa-use tunnel start <url> # Acquire a tunnel (released immediately unless --hold)\nqa-use tunnel start <url> --hold # Keep the tunnel up until Ctrl+C\nqa-use tunnel ls # List active tunnels (target, public URL, refcount)\nqa-use tunnel status <target> # Detail for a single tunnel\nqa-use tunnel close <target> # Force-release a tunnel (kills detached holders)\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:explore https://example.com\n```\n(Wraps create + goto + snapshot with autonomous exploration)\n\n**Critical:** Always run `snapshot` before your **first** interaction on a page. Never guess element refs.\n\n**Snapshot Diff Feature (use it to avoid unnecessary snapshots):**\nAfter each action (goto, click, fill, etc.), the browser automatically shows DOM changes:\n- **Summary**: \"5 elements added, 1 element modified\"\n- **Added elements**: `+ [e54] generic \"Thanks for agreeing!\"` (green)\n- **Modified elements**: `~ [e18] checkbox \"I agree...\"` with `+attrs: checked, active` (yellow)\n- **Removed elements**: `- [e99] button \"Submit\"` (red)\n\n**When you can skip a full `snapshot`:** If the diff output from your last action already shows the element ref you need to interact with next, use it directly \u2014 no need for an intermediate `snapshot`. For example, if clicking a button shows `+ [e54] button \"Submit\"` in the diff, you can `click e54` immediately.\n\n**When you still need a full `snapshot`:** Run `snapshot` when you need to find elements that weren't in the diff (e.g., pre-existing elements you haven't interacted with yet), or when the diff was truncated (shows \"... and N more changes\").\n\n### 2. Understanding Blocks\n\n**What are blocks?**\n\nBlocks are atomic recorded interactions from a browser session. They are:\n- Automatically captured during any browser interaction (click, fill, goto, scroll, etc.)\n- Stored server-side with the session\n- Retrieved via `qa-use browser get-blocks`\n- The foundation for test generation\n\n**Why blocks matter:**\n- **Record-once, replay-many**: Interactive recording becomes automated test\n- **AI-friendly**: Agents can analyze blocks to understand user intent\n- **Version control**: Blocks stored with session enable test iteration\n- **Bridge CLI \u2192 Tests**: Natural workflow from exploration to automation\n\n**How blocks work:**\n\n```bash\n# 1. Create session and interact (auto-tunnels localhost)\nqa-use browser create --no-headless\nqa-use browser goto https://example.com\nqa-use browser snapshot # Returns: [ref=e1] button\nqa-use browser click e1 # Records as block\nqa-use browser fill e5 \"text\" # Records as block\n\n# 2. Retrieve blocks (JSON array)\nqa-use browser get-blocks\n# Returns:\n# [\n# {\"type\": \"goto\", \"url\": \"...\", \"timestamp\": \"...\"},\n# {\"type\": \"click\", \"ref\": \"e1\", \"timestamp\": \"...\"},\n# {\"type\": \"fill\", \"ref\": \"e5\", \"value\": \"text\", \"timestamp\": \"...\"}\n# ]\n\n# 3. Generate test YAML from blocks\nqa-use browser generate-test -n \"my_test\" -o qa-tests/my_test.yaml\n\n# 4. Run generated test\nqa-use test run my_test\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record start my_test\n# ... perform interactions ...\n/qa-use:record stop\n```\n(Wraps the interactive workflow with AI-powered test generation)\n\n### 3. Test Management\n\n**CLI Workflow:**\n```bash\n# Run test by name\nqa-use test run login\n\n# Run and save the (non-synced) local test to cloud\nqa-use test run login --persist\n\n# Validate syntax\nqa-use test validate login\n\n# Show test details\nqa-use test info login\n\n# List test runs\nqa-use test runs --status failed\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:test-run login\n```\n(Convenience shortcut for common test execution)\n\n### 4. Test Variables (Imperative Edit)\n\nQuick `set`/`unset` for the typed `variables:` block on a single test \u2014\nuseful when you don't want to round-trip the full YAML.\n\n**CLI Workflow:**\n```bash\n# Local YAML file \u2014 Document API preserves comments + key order\nqa-use test vars list qa-tests/login.yaml\nqa-use test vars list qa-tests/login.yaml --json\nqa-use test vars set qa-tests/login.yaml --key user --value alice\nqa-use test vars set qa-tests/login.yaml --key url --value https://x \\\n --type url --lifetime all\nqa-use test vars set qa-tests/login.yaml --key password --value hunter2 --sensitive\nqa-use test vars set qa-tests/login.yaml --key password --sensitive # preserves stored value\nqa-use test vars unset qa-tests/login.yaml --key user\n\n# Remote --id fallback \u2014 exports YAML, mutates, re-imports (best-effort RMW)\nqa-use test vars list --id <uuid>\nqa-use test vars set --id <uuid> --key user --value alice\nqa-use test vars unset --id <uuid> --key user\n```\n\n**Rules:**\n\n- **Mutual exclusion**: pass either `<file>` *or* `--id`, not both. Neither \u2192 exit 1.\n- **`--id` requires a full UUID** (use `qa-use test list --query <name>` to find one).\n- **Form upgrade**: passing only `--key`/`--value` writes simple form (`key: value`).\n Any of `--type`/`--lifetime`/`--context`/`--sensitive` upgrades to full form\n (`{ value, type, lifetime, context, is_sensitive }`).\n- **Sensitive-preserve**: on an existing sensitive var, `--sensitive` *without*\n `--value` keeps the stored value. On a new key, that combination errors out.\n- **`--json` redaction**: sensitive entries omit the `value` key entirely; the\n `is_sensitive: true` flag is the redaction signal.\n- **Remote round-trip caveat**: comment/key-order preservation only applies to\n the local-file path. The server normalizes formatting on import.\n\n**No Plugin Shortcut** - Use CLI commands directly.\n\n### 5. Test Sync Lifecycle\n\n**CLI Workflow:**\n```bash\n# Pull tests from cloud\nqa-use test sync pull\n\n# Push all local tests to cloud\nqa-use test sync push --all\n\n# Push specific test\nqa-use test sync push --id <uuid>\n\n# Force push (overwrite conflicts)\nqa-use test sync push --force\n\n# Compare local vs cloud\nqa-use test diff login.yaml\n```\n\n**Persist vs Sync:**\n\nA local test is **synced** when its YAML has both an `id:` and a `version_hash:`\n(these are written back by `test sync push`/`pull`). `--persist` on `test run`\nand `qa-use test sync` are related but not the same:\n\n| Local file state | `persist` | What happens at run time |\n|---|---|---|\n| Non-synced | `false` (default) | Runs locally; nothing saved to cloud. Re-run with `--persist` or use `test sync push` to persist. |\n| Non-synced | `true` | Test is uploaded as a **new** cloud entry after the run. Re-running like this creates **duplicates** \u2014 prefer `test sync push` once the file tracks the cloud id. |\n| Synced | `false` | Runs against the cloud-tracked definition; no extra write. |\n| Synced | `true` | Cloud definition is **upserted** (may overwrite newer cloud edits). Use `test sync push`/`pull` for explicit version control. |\n\nRule of thumb: `test sync push`/`pull` is the deliberate path. Reserve `--persist`\n(or `defaults.persist: true` in `.qa-use.json`) for one-off uploads of brand-new\nlocal tests.\n\n**No Plugin Shortcut** - Use CLI commands directly\n\n## Essential Commands\n\n### Browser Session Management\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser create` | Create remote browser session |\n| `qa-use browser create <url>` | Create session and navigate to URL |\n| `qa-use browser create --tunnel [auto\\|on\\|off]` | Tunnel mode \u2014 default `auto` (localhost + remote API). `--no-tunnel` is sugar for `off`. |\n| `qa-use browser create --no-headless` | Show browser window (paired with a local/tunnel browser) |\n| `qa-use browser create --viewport <size>` | Set viewport: `desktop`, `tablet`, `mobile` |\n| `qa-use browser create --ws-url <url>` | Connect to existing WebSocket browser |\n| `qa-use browser create --after-test-id <uuid>` | Run a test first, then become interactive |\n| `qa-use browser create --var <key=value>` | Override app config variables (repeatable) |\n| `qa-use browser list` | List active sessions |\n| `qa-use browser status` | Show current session details (app_url, recording_url, etc.) |\n| `qa-use browser status --list` | Show all active sessions across processes |\n| `qa-use browser close` | Close active session |\n| `qa-use browser close <id>` | Close a specific session by id |\n| `qa-use doctor` | Reap stale sessions/tunnels (dead PIDs) |\n| `qa-use tunnel ls` | List active tunnels in the registry |\n| `qa-use tunnel start <url> --hold` | Hold a public tunnel for external consumers |\n\nSessions auto-persist in `~/.qa-use.json`. One active session = no `-s` flag needed. `browser create` returns immediately \u2014 the browser + tunnel run in a detached child. Use `qa-use doctor` if stale state accumulates.\n\n### Navigation\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser goto <url>` | Navigate to URL |\n| `qa-use browser back` | Go back |\n| `qa-use browser forward` | Go forward |\n| `qa-use browser reload` | Reload page |\n\n### Element Interaction\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser click <ref>` | Click element by ref |\n| `qa-use browser click --text \"Button\"` | Click by semantic description |\n| `qa-use browser fill <ref> \"value\"` | Fill input field |\n| `qa-use browser type <ref> \"text\"` | Type with delays (for autocomplete) |\n| `qa-use browser press <key>` | Press key (e.g., `Enter`, `Tab`) |\n| `qa-use browser check <ref>` | Check checkbox |\n| `qa-use browser uncheck <ref>` | Uncheck checkbox |\n| `qa-use browser select <ref> \"option\"` | Select dropdown option |\n| `qa-use browser hover <ref>` | Hover over element |\n| `qa-use browser scroll down 500` | Scroll by pixels |\n| `qa-use browser scroll-into-view <ref>` | Scroll element into view |\n| `qa-use browser drag <ref> --target <ref>` | Drag element to target |\n| `qa-use browser mfa-totp [ref] <secret>` | Generate TOTP code (optionally fill) |\n| `qa-use browser upload <ref> <file>...` | Upload file(s) to input (base64-encoded, works remote & tunnel) |\n\n### Inspection & Snapshot Diff\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser snapshot` | Get full ARIA tree with element refs (use only when diff output is insufficient) |\n| `qa-use browser url` | Get current URL |\n| `qa-use browser screenshot` | Save screenshot.png |\n| `qa-use browser screenshot file.png` | Save to custom path |\n| `qa-use browser screenshot --base64` | Output base64 to stdout |\n| `qa-use browser evaluate <expression>` | Execute JavaScript in browser context |\n\nThe snapshot-diff feature automatically displays DOM changes after each browser action:\n- **Added elements**: Shown with `+` prefix and green color \u2014 these refs are immediately usable\n- **Modified elements**: Shown with `~` prefix and yellow color, including attribute changes (`+attrs: checked`)\n- **Removed elements**: Shown with `-` prefix and red color \u2014 do NOT use these refs\n\n**Downloads:** When an action triggers a file download (e.g., clicking a download link), the response includes download info: filename, size, and a presigned URL. Use `qa-use browser downloads` to list all downloads or `--save <dir>` to save them locally.\n\nUse diff output to interact with newly appeared elements directly, without running a full `snapshot` first.\n\n### Test Operations\n\n| Command | Description |\n|---------|-------------|\n| `qa-use test run <name>` | Run test by name |\n| `qa-use test run --all` | Run all tests |\n| `qa-use test run <name> --tunnel [mode]` | Override tunnel mode (`auto`, `on`, `off`). `--no-tunnel` is sugar for `off`. Bare `--tunnel` is sugar for `on`. |\n| `qa-use test run <name> --download` | Download assets to `/tmp/qa-use/downloads/` |\n| `qa-use test run <name> --var key=value` | Override variable |\n| `qa-use test validate <name>` | Validate test syntax |\n| `qa-use test list` | List available tests |\n| `qa-use test info <name>` | Show test details (steps, tags, description) |\n| `qa-use test info --id <uuid>` | Show cloud test details by ID |\n| `qa-use test runs [name]` | List test run history |\n| `qa-use test runs --id <uuid>` | Filter runs by test ID |\n| `qa-use test runs --status failed` | Filter runs by status |\n| `qa-use test init` | Initialize test directory |\n| `qa-use test sync pull` | Pull tests from cloud |\n| `qa-use test sync push --all` | Push all local tests to cloud |\n| `qa-use test sync push --id <uuid>` | Push specific test |\n| `qa-use test sync push --force` | Push tests, overwriting conflicts |\n| `qa-use test diff <file>` | Compare local vs cloud test |\n| `qa-use test schema [path]` | View test definition schema |\n\n### API Operations (Dynamic OpenAPI)\n\n`qa-use api` dynamically discovers operations from `/api/v1/openapi.json` and caches metadata locally for offline fallback.\n\n| Command | Description |\n|---------|-------------|\n| `qa-use api` | Show help and available subcommands |\n| `qa-use api ls` | List available `/api/v1/*` routes from OpenAPI |\n| `qa-use api ls --refresh` | Force refresh OpenAPI cache |\n| `qa-use api ls --offline` | Use cached OpenAPI metadata only |\n| `qa-use api info /api/v1/<route>` | Show route details: parameters, request body, responses |\n| `qa-use api info /api/v1/<route> -X POST` | Show info for specific HTTP method |\n| `qa-use api info /api/v1/<route> --json` | Route info as JSON |\n| `qa-use api examples` | Show usage examples |\n| `qa-use api openapi` | Print OpenAPI spec URL |\n| `qa-use api openapi --raw` | Dump full OpenAPI spec as JSON |\n| `qa-use api /api/v1/tests` | Call endpoint (method inferred when possible) |\n| `qa-use api -X GET /api/v1/test-runs -f limit=5` | GET with query fields |\n| `qa-use api -X POST /api/v1/tests-actions/run --input body.json` | POST with JSON body file |\n| `qa-use api -X GET /api/v1/test-runs/<id>` | Fetch detail endpoint by ID |\n\n**No Plugin Shortcut** - Use CLI commands directly.\n\n### Logs & Debugging\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser logs console` | View console logs from session |\n| `qa-use browser logs console -s <id>` | View logs from specific/closed session |\n| `qa-use browser logs network` | View network request logs |\n| `qa-use browser logs network -s <id>` | View network logs from specific session |\n| `qa-use browser downloads` | List downloaded files from session |\n| `qa-use browser downloads --save <dir>` | Save downloaded files to local directory |\n| `qa-use browser downloads --json` | Output download info as JSON |\n\n### Test Generation\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser generate-test` | Generate test YAML from recorded session |\n| `qa-use browser generate-test -s <id>` | Generate from specific session |\n| `qa-use browser generate-test -n <name>` | Specify test name |\n| `qa-use browser generate-test -o <path>` | Specify output path |\n| `qa-use browser get-blocks` | Get recorded interaction blocks (JSON) |\n\n### Waiting\n\n| Command | Description |\n|---------|-------------|\n| `qa-use browser wait <ms>` | Fixed wait |\n| `qa-use browser wait-for-selector \".class\"` | Wait for selector |\n| `qa-use browser wait-for-load` | Wait for page load |\n\n### Variable Overrides\n\nUse `--var` to override app config variables at runtime. Common variables:\n\n| Variable | Description |\n|----------|-------------|\n| `base_url` | Base URL for the app (e.g., preview deployment URL) |\n| `login_url` | Login page URL |\n| `login_username` | Username/email for authentication |\n| `login_password` | Password for authentication |\n\nExample with ephemeral preview URL:\n```bash\nqa-use browser create --after-test-id <login-test-uuid> \\\n --var base_url=https://preview-123.example.com \\\n --var login_url=https://preview-123.example.com/auth/login\n```\n\n## Common Patterns\n\n### Pattern 1: Feature Verification\n\n**CLI Workflow:**\n```bash\n# 1. Search for existing test\nqa-use test list | grep \"login\"\n\n# 2. Run test\nqa-use test run login\n\n# 3. Debug failures\nqa-use browser logs console\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:verify \"login works with valid credentials\"\n```\n(Wraps the above CLI workflow with AI-powered test discovery and analysis)\n\n### Pattern 2: Record & Generate Test\n\n**CLI Workflow:**\n```bash\n# 1. Create session (auto-tunnels localhost targets)\nqa-use browser create --no-headless\n\n# 2. Navigate and interact\nqa-use browser goto https://example.com\nqa-use browser snapshot\nqa-use browser click e1\nqa-use browser fill e5 \"test\"\n\n# 3. Generate test from blocks\nqa-use browser get-blocks\nqa-use browser generate-test -n \"my_test\"\n\n# 4. Run test\nqa-use test run my_test\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record start my_test\n# ... perform interactions ...\n/qa-use:record stop\n```\n\n### Pattern 3: Authenticated Exploration\n\n**CLI Workflow:**\n```bash\n# Create session that runs login test first\nqa-use browser create --after-test-id <login-test-uuid>\n\n# Session now authenticated, explore\nqa-use browser goto /dashboard\nqa-use browser snapshot\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:explore /dashboard\n```\n(Automatically handles auth detection and session creation)\n\n### Pattern 4: Edit Existing Test\n\n**CLI Workflow:**\n```bash\n# 1. Open test file in editor\nvim qa-tests/login.yaml\n\n# 2. Validate syntax\nqa-use test validate login\n\n# 3. Run to verify\nqa-use test run login\n```\n\n**Plugin Shortcut:**\n```\n/qa-use:record edit login\n```\n(AI-assisted editing with validation)\n\n### Pattern 5: Using Snapshot Diff to Avoid Unnecessary Snapshots\n\n**CLI Workflow:**\n```bash\n# Create session and navigate\nqa-use browser create --no-headless\nqa-use browser goto https://evals.desplega.ai/checkboxes\n\n# goto shows diff \u2014 initial page load shows all elements:\n# Changes: 45 elements added\n# + [e18] checkbox \"I agree to the terms and conditions\"\n# + [e19] generic \"I agree to the terms and conditions\"\n\n# \u2705 Use ref from diff directly \u2014 no snapshot needed!\nqa-use browser click e18\n\n# Diff shows what changed:\n# Changes: 5 elements added, 1 element modified\n# + [e54] generic \"Thanks for agreeing!\"\n# + [e55] link \"Terms and Conditions\"\n# ~ [e18] checkbox \"I agree to the terms and conditions\"\n# +attrs: active, checked\n\n# \u2705 Can click e55 directly from diff output \u2014 no snapshot needed!\nqa-use browser click e55\n\n# \u274C Need to find an element NOT in the diff? Now run snapshot:\nqa-use browser snapshot\n```\n\n**Key principle:** Use diff output as your primary source of element refs after actions. Only fall back to `snapshot` when you need to find elements that weren't in the diff.\n\n**Benefits:**\n- Fewer API calls = faster automation\n- Diff refs are always fresh (just returned from the server)\n- Instantly see what changed (new elements, attribute changes, removals)\n\n**No Plugin Shortcut** - Automatic feature in all browser commands\n\n## CI/CD Integration\n\n### Running Tests in CI\n\n**Environment Variables:**\n```bash\nexport QA_USE_API_KEY=\"your-api-key\"\nexport QA_USE_REGION=\"us\" # Optional: \"us\" or \"auto\"\n```\n\n**Basic Test Execution:**\n```bash\n# Run all tests\nqa-use test run --all\n\n# Run specific tag\nqa-use test run --tag smoke\n\n# Exit codes: 0 = pass, 1 = fail\n```\n\n### GitHub Actions Example\n\n```yaml\nname: QA Tests\non: [push, pull_request]\n\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n - uses: actions/setup-node@v3\n with:\n node-version: '20'\n - name: Install qa-use\n run: npm install -g @desplega.ai/qa-use\n - name: Run tests\n run: qa-use test run --all\n env:\n QA_USE_API_KEY: ${{ secrets.QA_USE_API_KEY }}\n```\n\n### Test Artifacts\n\n**Screenshots:**\n- Automatically saved on failure\n- Location: `/tmp/qa-use/downloads/` (local) or cloud (remote)\n\n**Logs:**\n- Console logs: `qa-use browser logs console -s <session-id>`\n- Network logs: `qa-use browser logs network -s <session-id>`\n\n## Advanced Topics\n\n### Localhost Testing (Auto-Tunnel)\n\n**qa-use auto-tunnels localhost targets when the API is remote.** No flag required for the common case:\n\n```bash\nqa-use browser create --no-headless http://localhost:3000\nqa-use test run my_test # auto-tunnels if base_url is localhost\n```\n\n**Tri-state `--tunnel` flag:**\n\n| Value | Behavior |\n|-------|----------|\n| `auto` (default) | Tunnel iff base URL is localhost AND API URL is remote |\n| `on` (or bare `--tunnel`) | Force a tunnel even in dev mode |\n| `off` (or `--no-tunnel`) | Never tunnel |\n\n```\nTesting localhost (http://localhost:3000)?\n \u251C\u2500 API remote (default) \u2192 auto-tunnels. No flag needed.\n \u251C\u2500 API also local (dev) \u2192 no tunnel by default. Use --tunnel on to force.\n \u2514\u2500 Public URL target \u2192 no tunnel (remote cloud browser)\n```\n\n**Plugin shortcuts handle tunnel detection automatically:**\n```\n/qa-use:explore http://localhost:3000\n/qa-use:record start local_test\n```\n\nSee [references/localhost-testing.md](references/localhost-testing.md) for troubleshooting.\n\n### Session Persistence\n\nSessions are stored in `~/.qa-use.json` and have:\n- **TTL**: 30 minutes (default)\n- **Auto-resolve**: One active session = no `-s` flag needed\n- **Cleanup**: Automatic on timeout or explicit `browser close`\n\n### Block Limitations\n\n**What's captured:**\n- goto, click, fill, type, check, uncheck, select, hover\n- scroll, scroll-into-view, drag, upload, press\n\n**What's NOT captured:**\n- Assertions (must be added manually)\n- Waits (inferred from timing, may need adjustment)\n- Complex interactions (multi-drag, hover sequences)\n\n**Manual editing:** Edit generated YAML to add assertions and refine selectors.\n\n### WebSocket Sessions\n\n**Sharing sessions across processes:**\n```bash\n# Process 1: Create session (auto-tunnels if target is localhost + API remote)\nqa-use browser create http://localhost:3000\n# Output: ws://localhost:12345/browser/abc123\n\n# Process 2: Connect to session\nqa-use browser goto https://example.com --ws-url ws://localhost:12345/browser/abc123\n```\n\n## Deep-Dive References\n\nAccess any reference at runtime via the CLI: `qa-use docs <topic>`\n\n| Topic | CLI Command | Description |\n|-------|-------------|-------------|\n| [browser-commands.md](references/browser-commands.md) | `qa-use docs browser-commands` | Complete browser CLI reference with all flags |\n| [test-format.md](references/test-format.md) | `qa-use docs test-format` | Full test YAML specification |\n| [localhost-testing.md](references/localhost-testing.md) | `qa-use docs localhost-testing` | Tunnel setup for local development |\n| [failure-debugging.md](references/failure-debugging.md) | `qa-use docs failure-debugging` | Failure classification and diagnostics |\n| [ci.md](references/ci.md) | `qa-use docs ci` | CI/CD integration patterns and examples |\n\nUse `qa-use docs --list` to discover all available topics and templates.\n\n## Templates\n\n| Template | Description |\n|----------|-------------|\n| [basic-test.yaml](templates/basic-test.yaml) | Simple navigation and assertion |\n| [auth-flow.yaml](templates/auth-flow.yaml) | Login flow with credentials |\n| [form-test.yaml](templates/form-test.yaml) | Form submission with validation |\n\n## Test Format Overview\n\n```yaml\nname: Login Test\ndescription: Validates login functionality with valid credentials\ntags:\n - smoke\n - auth\napp_config: <app-config-id>\nvariables:\n email: test@example.com\n password: secret123\ndepends_on: setup-test # Optional\nsteps:\n - action: goto\n url: /login\n - action: fill\n target: email input\n value: $email\n - action: click\n target: login button\n - action: to_be_visible\n target: dashboard\n```\n\nSee [references/test-format.md](references/test-format.md) for complete specification.\n\n## Common Mistakes\n\n| \u274C Wrong | \u2705 Correct |\n|---------|-----------|\n| `browser navigate <url>` | `browser goto <url>` |\n| `browser destroy` | `browser close` |\n| `browser close <session-id>` | `browser close` |\n| Guessing element refs | Use refs from diff output or `snapshot` |\n| Running `snapshot` after every action | Use diff output; only `snapshot` when needed |\n| Forcing `--tunnel` in dev (both local) | Rely on auto-mode, or use `--tunnel on` explicitly |\n| `test sync --pull` | `test sync pull` (subcommand, not flag) |\n| `test sync --push` | `test sync push` (subcommand, not flag) |\n\n## Troubleshooting\n\nWhen stuck or encountering unexpected errors, use the built-in documentation:\n\n```bash\n# Check configuration state\nqa-use setup\n\n# Browse main documentation\nqa-use docs\n\n# List all available topics\nqa-use docs --list\n\n# Access specific topic\nqa-use docs <topic>\n```\n\n| Situation | Command |\n|-----------|---------|\n| Auth / API key errors | `qa-use setup` then `qa-use docs` |\n| Unknown browser command | `qa-use docs browser-commands` |\n| Test failures | `qa-use docs failure-debugging` |\n| Localhost / tunnel issues | `qa-use docs localhost-testing` |\n| Test YAML syntax | `qa-use docs test-format` |\n| CI/CD setup | `qa-use docs ci` |\n\n**Key rules:**\n- ALWAYS consult `qa-use docs` before improvising workarounds\n- NEVER fabricate API keys, tokens, URLs, or credentials\n- If `qa-use setup` shows no config, report it \u2014 don't guess\n\n## npx Alternative\n\nAll commands use `qa-use` assuming global install. For one-off use:\n```bash\nnpx @desplega.ai/qa-use browser <command>\n```\n";
|
|
7
7
|
export declare const REFERENCE_DOCS: Record<string, {
|
|
8
8
|
title: string;
|
|
9
9
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-content.d.ts","sourceRoot":"","sources":["../../../../src/cli/generated/docs-content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"docs-content.d.ts","sourceRoot":"","sources":["../../../../src/cli/generated/docs-content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,QAAQ,484BAuxBpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA2qD7E,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAiIxE,CAAC"}
|
|
@@ -202,7 +202,46 @@ qa-use test runs --status failed
|
|
|
202
202
|
\`\`\`
|
|
203
203
|
(Convenience shortcut for common test execution)
|
|
204
204
|
|
|
205
|
-
### 4. Test
|
|
205
|
+
### 4. Test Variables (Imperative Edit)
|
|
206
|
+
|
|
207
|
+
Quick \`set\`/\`unset\` for the typed \`variables:\` block on a single test —
|
|
208
|
+
useful when you don't want to round-trip the full YAML.
|
|
209
|
+
|
|
210
|
+
**CLI Workflow:**
|
|
211
|
+
\`\`\`bash
|
|
212
|
+
# Local YAML file — Document API preserves comments + key order
|
|
213
|
+
qa-use test vars list qa-tests/login.yaml
|
|
214
|
+
qa-use test vars list qa-tests/login.yaml --json
|
|
215
|
+
qa-use test vars set qa-tests/login.yaml --key user --value alice
|
|
216
|
+
qa-use test vars set qa-tests/login.yaml --key url --value https://x \\
|
|
217
|
+
--type url --lifetime all
|
|
218
|
+
qa-use test vars set qa-tests/login.yaml --key password --value hunter2 --sensitive
|
|
219
|
+
qa-use test vars set qa-tests/login.yaml --key password --sensitive # preserves stored value
|
|
220
|
+
qa-use test vars unset qa-tests/login.yaml --key user
|
|
221
|
+
|
|
222
|
+
# Remote --id fallback — exports YAML, mutates, re-imports (best-effort RMW)
|
|
223
|
+
qa-use test vars list --id <uuid>
|
|
224
|
+
qa-use test vars set --id <uuid> --key user --value alice
|
|
225
|
+
qa-use test vars unset --id <uuid> --key user
|
|
226
|
+
\`\`\`
|
|
227
|
+
|
|
228
|
+
**Rules:**
|
|
229
|
+
|
|
230
|
+
- **Mutual exclusion**: pass either \`<file>\` *or* \`--id\`, not both. Neither → exit 1.
|
|
231
|
+
- **\`--id\` requires a full UUID** (use \`qa-use test list --query <name>\` to find one).
|
|
232
|
+
- **Form upgrade**: passing only \`--key\`/\`--value\` writes simple form (\`key: value\`).
|
|
233
|
+
Any of \`--type\`/\`--lifetime\`/\`--context\`/\`--sensitive\` upgrades to full form
|
|
234
|
+
(\`{ value, type, lifetime, context, is_sensitive }\`).
|
|
235
|
+
- **Sensitive-preserve**: on an existing sensitive var, \`--sensitive\` *without*
|
|
236
|
+
\`--value\` keeps the stored value. On a new key, that combination errors out.
|
|
237
|
+
- **\`--json\` redaction**: sensitive entries omit the \`value\` key entirely; the
|
|
238
|
+
\`is_sensitive: true\` flag is the redaction signal.
|
|
239
|
+
- **Remote round-trip caveat**: comment/key-order preservation only applies to
|
|
240
|
+
the local-file path. The server normalizes formatting on import.
|
|
241
|
+
|
|
242
|
+
**No Plugin Shortcut** - Use CLI commands directly.
|
|
243
|
+
|
|
244
|
+
### 5. Test Sync Lifecycle
|
|
206
245
|
|
|
207
246
|
**CLI Workflow:**
|
|
208
247
|
\`\`\`bash
|
|
@@ -2117,6 +2156,41 @@ Variables can be overridden at runtime:
|
|
|
2117
2156
|
qa-use test run my-test --var email=other@example.com
|
|
2118
2157
|
\`\`\`
|
|
2119
2158
|
|
|
2159
|
+
### Typed variables (full form)
|
|
2160
|
+
|
|
2161
|
+
When a variable needs a non-default \`type\`, \`lifetime\`, \`context\`, or the
|
|
2162
|
+
sensitive flag, write the full-form entry:
|
|
2163
|
+
|
|
2164
|
+
\`\`\`yaml
|
|
2165
|
+
variables:
|
|
2166
|
+
url:
|
|
2167
|
+
value: https://example.com
|
|
2168
|
+
type: url
|
|
2169
|
+
lifetime: all
|
|
2170
|
+
context: test
|
|
2171
|
+
password:
|
|
2172
|
+
value: hunter2
|
|
2173
|
+
type: password
|
|
2174
|
+
is_sensitive: true
|
|
2175
|
+
\`\`\`
|
|
2176
|
+
|
|
2177
|
+
### Imperative edits via the CLI
|
|
2178
|
+
|
|
2179
|
+
For one-key changes, prefer \`qa-use test vars\` over hand-editing the YAML:
|
|
2180
|
+
|
|
2181
|
+
\`\`\`bash
|
|
2182
|
+
qa-use test vars list qa-tests/foo.yaml # tabular, sensitive masked
|
|
2183
|
+
qa-use test vars set qa-tests/foo.yaml --key key --value v
|
|
2184
|
+
qa-use test vars set qa-tests/foo.yaml --key url --value https://x --type url
|
|
2185
|
+
qa-use test vars unset qa-tests/foo.yaml --key key
|
|
2186
|
+
|
|
2187
|
+
qa-use test vars list --id <uuid> # remote: export → list
|
|
2188
|
+
qa-use test vars set --id <uuid> --key key --value v # remote: RMW via export+import
|
|
2189
|
+
\`\`\`
|
|
2190
|
+
|
|
2191
|
+
The local path uses yaml's Document API, so comments and key ordering survive
|
|
2192
|
+
the rewrite. Pass \`<file>\` *or* \`--id\`, never both. \`--id\` requires a full UUID.
|
|
2193
|
+
|
|
2120
2194
|
## Dependencies
|
|
2121
2195
|
|
|
2122
2196
|
Run prerequisite tests first:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-content.js","sourceRoot":"","sources":["../../../../src/cli/generated/docs-content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG
|
|
1
|
+
{"version":3,"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C,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CACpD,CAEA;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAgB9C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAE1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,IAAI,CAWlD"}
|
|
@@ -235,7 +235,12 @@ export function printSSEProgress(event, verbose = false, context) {
|
|
|
235
235
|
context.runId = event.data.run_id;
|
|
236
236
|
}
|
|
237
237
|
console.log(success(`Test started (run_id: ${event.data.run_id})`));
|
|
238
|
-
|
|
238
|
+
if (event.data.matrix === true) {
|
|
239
|
+
console.log(`Matrix run — children will be queued in parallel.\n`);
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
console.log(`Total steps: ${event.data.total_steps}\n`);
|
|
243
|
+
}
|
|
239
244
|
break;
|
|
240
245
|
case 'step_start':
|
|
241
246
|
console.log(`${colors.gray}[${event.data.step_index}]${colors.reset} ${event.data.name}...`);
|
|
@@ -336,6 +341,14 @@ export function printSSEProgress(event, verbose = false, context) {
|
|
|
336
341
|
}
|
|
337
342
|
case 'complete':
|
|
338
343
|
console.log('');
|
|
344
|
+
if (event.data.matrix === true) {
|
|
345
|
+
// Matrix runs only emit start+complete (no per-step events) — the
|
|
346
|
+
// parent run is queued and children fan out in the background.
|
|
347
|
+
const msg = event.data.message ??
|
|
348
|
+
`Matrix run queued. Inspect children with: qa-use test runs list --id <test-id>`;
|
|
349
|
+
console.log(success(msg));
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
339
352
|
if (event.data.status === 'passed') {
|
|
340
353
|
console.log(success(`Test passed in ${duration(event.data.duration_seconds)}`));
|
|
341
354
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../src/cli/lib/output.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAkBrF,mBAAmB;AACnB,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,UAAU;IACf,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,mFAAmF;AACnF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAuB,CAAC;AAEnD,+CAA+C;AAC/C,MAAM,eAAe,GAAG,IAAI,GAAG,EAO5B,CAAC;AAEJ,2CAA2C;AAC3C,MAAM,eAAe,GAA0C,EAAE,CAAC;AAElE;;GAEG;AACH,SAAS,gBAAgB;IACvB,WAAW,CAAC,KAAK,EAAE,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB;IACvB,eAAe,CAAC,KAAK,EAAE,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB;IAC3B,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe;IACrC,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,IAAI,OAAO,EAAE,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,KAAK,CAAC,OAAe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AI,EAAE,CAAC,CAAC;QAC5C,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC,eAAe,MAAM,EAAE,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,IAAY;IAC1D,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,CAAC,GAAG,eAAe,CAAC,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B;IACzC,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IAED,OAAO,CAAC,GAAG,CACT,gBAAgB,eAAe,CAAC,MAAM,QAAQ,eAAe,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CACzF,CAAC;IACF,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,eAAe,EAAE,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,IAAI,EAAE,CAAC,CAAC;IACpC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for the imperative `qa-use test vars` CLI surface.
|
|
3
|
+
*
|
|
4
|
+
* Owns YAML mutation primitives, sensitive-aware masking, and a runtime
|
|
5
|
+
* mirror of the `Type` / `Lifetime` / `Context` enums from the auto-generated
|
|
6
|
+
* `src/types/test-definition.ts`. Mutual-extends checks compile-time-fail if
|
|
7
|
+
* regenerated types drift from the runtime arrays.
|
|
8
|
+
*/
|
|
9
|
+
import * as yaml from 'yaml';
|
|
10
|
+
import type { Context as VariableContext, VariableEntry, Lifetime as VariableLifetime, Variables, Type as VariableType } from '../../types/test-definition.js';
|
|
11
|
+
export declare const TEST_VARIABLE_TYPES: readonly ["custom", "company_name", "random_string", "random_number", "first_name", "last_name", "full_name", "username", "address", "phone_number", "city", "country", "url", "email", "password", "email_message", "sensitive", "text", "uuid", "slug"];
|
|
12
|
+
export declare const TEST_VARIABLE_LIFETIMES: readonly ["all", "test", "suite"];
|
|
13
|
+
export declare const TEST_VARIABLE_CONTEXTS: readonly ["test", "suite", "persona", "app_config", "global"];
|
|
14
|
+
type _AssertTypesCover = VariableType extends (typeof TEST_VARIABLE_TYPES)[number] ? true : never;
|
|
15
|
+
type _AssertLifetimesCover = VariableLifetime extends (typeof TEST_VARIABLE_LIFETIMES)[number] ? true : never;
|
|
16
|
+
type _AssertContextsCover = VariableContext extends (typeof TEST_VARIABLE_CONTEXTS)[number] ? true : never;
|
|
17
|
+
export declare const _VAR_ENUM_DRIFT_GUARD: [
|
|
18
|
+
_AssertTypesCover,
|
|
19
|
+
_AssertLifetimesCover,
|
|
20
|
+
_AssertContextsCover
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Coerce a `Variables` map value (simple form `string | number` or full
|
|
24
|
+
* `VariableEntry`) into a normalized `VariableEntry`.
|
|
25
|
+
*
|
|
26
|
+
* Simple-form values become `{ value: <as-is>, is_sensitive: false }`.
|
|
27
|
+
* Full-form entries are returned as-is (no defaults injected here — defaults
|
|
28
|
+
* live in `vars set`'s YAML serialization path).
|
|
29
|
+
*/
|
|
30
|
+
export declare function getNormalizedEntry(value: string | number | VariableEntry): VariableEntry;
|
|
31
|
+
/**
|
|
32
|
+
* Render the display value for a top-level variable entry, masking sensitive
|
|
33
|
+
* values as `****`. Accepts the broad `Variables`-map union to match the
|
|
34
|
+
* existing `info.ts` call sites without forcing a normalizer at every site.
|
|
35
|
+
*
|
|
36
|
+
* Does **not** truncate — truncation is a presentation concern that stays at
|
|
37
|
+
* the caller (e.g. `info.ts` truncates to 50 chars).
|
|
38
|
+
*/
|
|
39
|
+
export declare function maskValue(value: string | number | VariableEntry): string;
|
|
40
|
+
/**
|
|
41
|
+
* Verify a `set` mutation actually stuck after `importTestDefinition`.
|
|
42
|
+
* `ImportResult.success` can be `true` while the per-test `action` is
|
|
43
|
+
* `conflict`/`unchanged`, so the only reliable signal is to re-export and
|
|
44
|
+
* compare against the entry we sent in the import payload.
|
|
45
|
+
*
|
|
46
|
+
* Returns `null` on match; otherwise a short reason describing the divergence.
|
|
47
|
+
* Only fields that were explicitly set on `expected` are compared — so a
|
|
48
|
+
* simple-form mutation tolerates the server normalizing to full form with
|
|
49
|
+
* extra defaults.
|
|
50
|
+
*/
|
|
51
|
+
export declare function verifySetMutation(vars: Variables, key: string, expected: string | number | VariableEntry): string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Verify an `unset` mutation actually stuck — the key must be absent from the
|
|
54
|
+
* post-import re-export.
|
|
55
|
+
*/
|
|
56
|
+
export declare function verifyUnsetMutation(vars: Variables, key: string): string | null;
|
|
57
|
+
export interface YamlVarsFile {
|
|
58
|
+
doc: yaml.Document.Parsed;
|
|
59
|
+
vars: Variables;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Parse a YAML file into a `yaml.Document` (preserves comments + ordering)
|
|
63
|
+
* and return the `variables:` map alongside.
|
|
64
|
+
*
|
|
65
|
+
* Returns an empty map when no `variables:` block is present.
|
|
66
|
+
*/
|
|
67
|
+
export declare function readVarsFromYamlFile(filePath: string): Promise<YamlVarsFile>;
|
|
68
|
+
/**
|
|
69
|
+
* Write a `yaml.Document` back to disk, preserving the formatting captured
|
|
70
|
+
* during parse (comments, key order, quoting style).
|
|
71
|
+
*/
|
|
72
|
+
export declare function writeYamlFile(filePath: string, doc: yaml.Document): Promise<void>;
|
|
73
|
+
export type VarsTarget = {
|
|
74
|
+
kind: 'file';
|
|
75
|
+
path: string;
|
|
76
|
+
} | {
|
|
77
|
+
kind: 'id';
|
|
78
|
+
uuid: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Resolve the file/id target for a `vars` command. Throws when both or
|
|
82
|
+
* neither are provided, or when `--id` is not a full UUID. Callers exit 1
|
|
83
|
+
* with the thrown message — they are the entry points and own process.exit.
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolveVarsTarget(args: {
|
|
86
|
+
file?: string;
|
|
87
|
+
id?: string;
|
|
88
|
+
}): VarsTarget;
|
|
89
|
+
export {};
|
|
90
|
+
//# sourceMappingURL=test-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-vars.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/test-vars.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EACV,OAAO,IAAI,eAAe,EAC1B,aAAa,EACb,QAAQ,IAAI,gBAAgB,EAC5B,SAAS,EACT,IAAI,IAAI,YAAY,EACrB,MAAM,gCAAgC,CAAC;AAOxC,eAAO,MAAM,mBAAmB,2PAqBY,CAAC;AAE7C,eAAO,MAAM,uBAAuB,mCAIY,CAAC;AAEjD,eAAO,MAAM,sBAAsB,+DAMY,CAAC;AAMhD,KAAK,iBAAiB,GAAG,YAAY,SAAS,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAClG,KAAK,qBAAqB,GAAG,gBAAgB,SAAS,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,GAC1F,IAAI,GACJ,KAAK,CAAC;AACV,KAAK,oBAAoB,GAAG,eAAe,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,GAC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