Skip to content

Getting Started

UI QA is a command-line tool for automated UI/UX testing. It uses browser automation and LLM analysis to identify issues across your website.

Prerequisites

Installation

Run without installation:

bash
npx @usharma124/ui-qa https://example.com

Global Installation

Install for repeated use:

bash
npm install -g @usharma124/ui-qa
bash
bun add -g @usharma124/ui-qa
bash
pnpm add -g @usharma124/ui-qa

Then run from any directory:

bash
ui-qa https://example.com

Project Dependency

Add to your project for CI/CD integration:

bash
npm install --save-dev @usharma124/ui-qa
bash
bun add -D @usharma124/ui-qa

Add a script to package.json:

json
{
  "scripts": {
    "test:ui": "ui-qa https://staging.example.com"
  }
}

Browser Setup

Install Chromium on first run:

bash
npx playwright install chromium

Running Your First Test

  1. Set your API key:
bash
export OPENROUTER_API_KEY=sk-or-v1-your-key-here
  1. Run a test:
bash
# UI/UX testing mode (default)
npx @usharma124/ui-qa https://example.com

# Business logic validation mode
npx @usharma124/ui-qa validate --spec requirements.md --url https://app.example.com
  1. View results:

Test Mode - Results in .ui-qa-runs/:

FileContents
events.jsonlStreaming JSON event log for the run
run.jsonRun metadata plus embedded report and evidence
report.mdHuman-readable report
llm-fix.txtPlain-text fix guide for LLMs
screenshots/Visual evidence

Validation Mode - Run artifacts in .ui-qa-runs/validation-<run-id>/ and reports in output directory (default: ./reports):

FileContents
.ui-qa-runs/validation-<run-id>/events.jsonlStreaming phase-by-phase validation events
.ui-qa-runs/validation-<run-id>/run.jsonValidation run metadata
traceability-report-<timestamp>.jsonFull validation report
traceability-report-<timestamp>.mdHuman-readable summary

Next Steps

Released under the MIT License.