assuremind 1.2.3 β 1.4.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/README.md +112 -1
- package/dist/cli/index.js +1212 -18497
- package/dist/index.d.mts +65 -1
- package/dist/index.d.ts +65 -1
- package/dist/index.js +56 -1912
- package/dist/index.mjs +56 -1807
- package/docs/STUDIO.md +96 -1
- package/docs/WRITING-STEPS.md +171 -0
- package/package.json +8 -6
- package/templates/docs/WRITING-STEPS.md +171 -0
- package/ui/dist/assets/index-DqkGvedS.js +1024 -0
- package/ui/dist/assets/index-Dry-Q0Et.css +1 -0
- package/ui/dist/favicon.svg +7 -7
- package/ui/dist/index.html +15 -15
- package/dist/cli/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/ui/dist/assets/index-B2cmnLeA.js +0 -942
- package/ui/dist/assets/index-Bz5b82ao.css +0 -1
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
Describe tests in plain English. AI generates Playwright code. Run anywhere.
|
|
11
11
|
|
|
12
|
+
> ### π [AssureMind Community Hub β https://assuremind.in/](https://assuremind.in/)
|
|
13
|
+
> Report bugs Β· request features Β· share ideas & feedback Β· ask questions.
|
|
14
|
+
> π§ Contact: [assuremind.contact@gmail.com](mailto:assuremind.contact@gmail.com)
|
|
15
|
+
|
|
12
16
|
---
|
|
13
17
|
|
|
14
18
|
## Why Assuremind?
|
|
@@ -28,6 +32,7 @@ Describe tests in plain English. AI generates Playwright code. Run anywhere.
|
|
|
28
32
|
| **CI-ready** | `npx assuremind run --all --ci` β exit code 0/1, works with any pipeline |
|
|
29
33
|
| **File-based** | Plain JSON storage, fully Git-friendly, no database |
|
|
30
34
|
| **Faker Data** | 100+ @faker-js/faker generators across 16 categories β random emails, names, addresses, sequences β no code, no stale data |
|
|
35
|
+
| **File upload & download** | Upload fixtures from the Studio and insert as `{{FILE:β¦}}` tokens; downloads auto-captured per run and viewable in Reports |
|
|
31
36
|
| **Visual regression** | Pixel-diff screenshot comparison with baselines β approve/reject visual changes in Studio |
|
|
32
37
|
| **CI/CD integration** | Quality gates, PR comments (GitHub/GitLab), Slack/Teams notifications |
|
|
33
38
|
|
|
@@ -38,10 +43,23 @@ Describe tests in plain English. AI generates Playwright code. Run anywhere.
|
|
|
38
43
|
```bash
|
|
39
44
|
npm install assuremind
|
|
40
45
|
npx assuremind init # folders, config, Playwright browsers
|
|
46
|
+
npx playwright install # if browser install was skipped or failed during init
|
|
41
47
|
npx assuremind studio # opens http://localhost:4400
|
|
42
48
|
```
|
|
43
49
|
|
|
44
|
-
> **
|
|
50
|
+
> **First-time setup:** `npx assuremind init` installs the Playwright browsers automatically. If that step is skipped (`--skip-playwright`) or fails (network/permissions), install them manually with `npx playwright install` (add `--with-deps` on Linux to pull OS libraries). Run `npx assuremind doctor` to verify your setup.
|
|
51
|
+
|
|
52
|
+
### System Requirements
|
|
53
|
+
|
|
54
|
+
| | Minimum | Recommended |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| **Node.js** | 18 LTS | 20 LTS or newer |
|
|
57
|
+
| **OS** | macOS / Linux / Windows 10+ | β |
|
|
58
|
+
| **RAM** | 4 GB | 8 GB+ |
|
|
59
|
+
| **Disk** | ~2 GB (app + Playwright browsers) | 5 GB+ |
|
|
60
|
+
| **Java** | β | JDK 17+ β only for Allure HTML reports |
|
|
61
|
+
|
|
62
|
+
`npx assuremind init` installs the Playwright browsers. Using a **cloud AI provider** (Anthropic, OpenAI, Gemini, β¦) needs only an API key and the specs above. Running a **local model via Ollama** has heavier requirements β see below.
|
|
45
63
|
|
|
46
64
|
### Configure AI Provider
|
|
47
65
|
|
|
@@ -56,6 +74,45 @@ ANTHROPIC_MODEL=claude-sonnet.. OPENAI_MODEL=gpt-4o GOOGLE_MODEL=
|
|
|
56
74
|
|
|
57
75
|
See `.env.example` for all 12 providers including Gemini, OpenAI, Anthropic, Ollama (local/free), etc.
|
|
58
76
|
|
|
77
|
+
### Local & Free β Ollama
|
|
78
|
+
|
|
79
|
+
Run models entirely on your own machine (no API key, no cost). AssureMind uses the model to turn
|
|
80
|
+
plain-English steps into Playwright code, so a **code-tuned model with strong instruction-following**
|
|
81
|
+
works best.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# 1. Install Ollama β https://ollama.com/download
|
|
85
|
+
ollama serve # starts the server on http://localhost:11434
|
|
86
|
+
ollama pull qwen2.5-coder:7b # 2. pull the recommended model
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# 3. .env
|
|
91
|
+
AI_PROVIDER=ollama
|
|
92
|
+
OLLAMA_MODEL=qwen2.5-coder:7b
|
|
93
|
+
OLLAMA_BASE_URL=http://localhost:11434
|
|
94
|
+
AI_TIMEOUT=120 # local inference is slower than cloud APIs
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Recommended models (by hardware):**
|
|
98
|
+
|
|
99
|
+
| Hardware | Model | Notes |
|
|
100
|
+
|----------|-------|-------|
|
|
101
|
+
| 16 GB+ RAM, GPU 8 GB+ VRAM | `qwen2.5-coder:14b` | Highest accuracy β best for complex steps / iframes |
|
|
102
|
+
| 16 GB RAM (GPU optional) β | `qwen2.5-coder:7b` | **Best balance** of quality & speed for this task |
|
|
103
|
+
| 8 GB RAM, no GPU | `llama3.2` (3B) / `qwen2.5-coder:3b` | Usable; good for simpler steps |
|
|
104
|
+
| β€4β6 GB RAM | `llama3.2:1b` / `phi3:mini` | Lightweight; navigation & clicks only |
|
|
105
|
+
|
|
106
|
+
**Ollama system requirements:**
|
|
107
|
+
|
|
108
|
+
- **RAM is the floor** β a model needs roughly its file size **+ β2 GB free**. A 7B model (β4.7 GB)
|
|
109
|
+
wants **8 GB free RAM minimum, 16 GB comfortable**; a 14B model wants **β16 GB+**.
|
|
110
|
+
- **GPU is optional but transformative** β CPU-only works (hence `AI_TIMEOUT=120`), but a GPU with
|
|
111
|
+
**8 GB+ VRAM** (NVIDIA CUDA / Apple Silicon / modern AMD) makes 7B models fast. Apple Silicon (M-series) is excellent thanks to unified memory.
|
|
112
|
+
- **Disk** β a few GB per model; keep **10β20 GB free** if trying several.
|
|
113
|
+
- **Tips** β enable **MCP** (Settings β live page snapshots) for far more accurate locators with local
|
|
114
|
+
models. Avoid `deepseek-r1` here: its `<think>` reasoning output is slow and pollutes generated code.
|
|
115
|
+
|
|
59
116
|
---
|
|
60
117
|
|
|
61
118
|
## CLI
|
|
@@ -253,6 +310,12 @@ If all 5 levels fail, the step is marked **failed** and saved to the healing rep
|
|
|
253
310
|
|
|
254
311
|
Also supports **GitLab CI** and **Jenkins** β or use the built-in **CI Config Generator** in Studio (Run Config β Generate CI Config).
|
|
255
312
|
|
|
313
|
+
**CI Config Generator** (Run Config β Generate CI Config):
|
|
314
|
+
- Generates a workflow for **GitHub Actions**, **GitLab CI**, or **Jenkins** from your current run config.
|
|
315
|
+
- The YAML is shown in a **preview**; click **β Edit** to customise it (branches, Node version, extra stepsβ¦). Your edits apply to Copy, Download, and Write to repo. Use **βΊ Reset** to regenerate.
|
|
316
|
+
- **Copy** / **Download** are always available.
|
|
317
|
+
- **Write to repo** (opt-in) writes the file into your project at its standard path (`.github/workflows/assuremind.yml`, `.gitlab-ci.yml`, or `Jenkinsfile`). Enable it in **Settings β CI/CD Integration β "Write CI files to repo"**. It only **writes the file** β it does **not** commit or push. Review the change and commit it from the **Git Control Center** when ready.
|
|
318
|
+
|
|
256
319
|
Exit code `0` = all passed Β· `1` = failures.
|
|
257
320
|
|
|
258
321
|
---
|
|
@@ -274,6 +337,40 @@ Exit code `0` = all passed Β· `1` = failures.
|
|
|
274
337
|
|
|
275
338
|
Browse by category or search, select multiple tokens at once β selected tokens appear as removable chips, and clicking "Insert N tokens" inserts them all comma-separated (e.g. `{{FAKE_PERSON_FIRSTNAME}}, {{FAKE_PERSON_LASTNAME}}, {{FAKE_INTERNET_EMAIL}}`). Great for form filling. Tokens resolve to fresh random values on every test run β no more "email already exists" failures.
|
|
276
339
|
|
|
340
|
+
### File Upload & Download
|
|
341
|
+
|
|
342
|
+
**Upload** β In the Test Editor, click the **Files** button (next to *Fake Data*) to upload a fixture file. It's saved in the repo at `fixtures/uploads/` (so it's committed and works in CI) and inserted into your step as a **`{{FILE:name}}`** token. The token resolves to the file's path at runtime:
|
|
343
|
+
|
|
344
|
+
```
|
|
345
|
+
Step: Upload {{FILE:resume.pdf}} to the Resume field
|
|
346
|
+
Code: await page.getByLabel('Resume').setInputFiles('{{FILE:resume.pdf}}');
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
For a file-chooser button, register the listener before the click (in one step):
|
|
350
|
+
```js
|
|
351
|
+
const fileChooserPromise = page.waitForEvent('filechooser');
|
|
352
|
+
await page.getByRole('button', { name: 'Choose File' }).click();
|
|
353
|
+
(await fileChooserPromise).setFiles('{{FILE:resume.pdf}}');
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
**Download** β Downloads are **captured automatically** during a run (no `saveAs`, no `fs` needed) and saved to `results/downloads/<runId>/`. The step waits until the file finishes downloading. After the run, open **Reports β Run Reports**, expand the run, and the **Downloads** panel lists every captured file β click any to save it to your machine.
|
|
357
|
+
|
|
358
|
+
**Example steps** (type these in plain English):
|
|
359
|
+
|
|
360
|
+
```text
|
|
361
|
+
# Upload
|
|
362
|
+
Upload {{FILE:resume.pdf}} to the Resume field
|
|
363
|
+
Upload {{FILE:resume.pdf}} to the Resume field and wait for 'Upload complete' # most reliable
|
|
364
|
+
Upload {{FILE:photo.png}} # page's file input
|
|
365
|
+
|
|
366
|
+
# Download (file finishes downloading before the step passes)
|
|
367
|
+
Download the "Export CSV" link
|
|
368
|
+
Click the "Export" button to download
|
|
369
|
+
Download the file by clicking "Report PDF"
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
Tip: for uploads, the `β¦and wait for '<success text>'` form is the most reliable (uploads have no completion event); otherwise the step waits for the network to settle.
|
|
373
|
+
|
|
277
374
|
### Visual Regression
|
|
278
375
|
|
|
279
376
|
Pixel-perfect screenshot comparison β catch UI changes that functional tests miss. Configure in **Settings** β Visual Regression. Review diffs in **Reports** β Visual Diffs tab.
|
|
@@ -322,6 +419,7 @@ Quality gates, PR comments, and notifications β configured from Studio, execut
|
|
|
322
419
|
| Resource | Location |
|
|
323
420
|
|----------|----------|
|
|
324
421
|
| Getting started | [docs/GETTING-STARTED.md](docs/GETTING-STARTED.md) |
|
|
422
|
+
| Writing test steps (UI & API examples) | [docs/WRITING-STEPS.md](docs/WRITING-STEPS.md) |
|
|
325
423
|
| Studio walkthrough | [docs/STUDIO.md](docs/STUDIO.md) |
|
|
326
424
|
| CLI reference | [docs/CLI-REFERENCE.md](docs/CLI-REFERENCE.md) |
|
|
327
425
|
| Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) |
|
|
@@ -331,6 +429,19 @@ Quality gates, PR comments, and notifications β configured from Studio, execut
|
|
|
331
429
|
|
|
332
430
|
---
|
|
333
431
|
|
|
432
|
+
## Community & Support
|
|
433
|
+
|
|
434
|
+
Have a question, found a bug, or want to shape what comes next? Join the **[AssureMind Community Hub](https://assuremind.in/)**:
|
|
435
|
+
|
|
436
|
+
- π **Report bugs**
|
|
437
|
+
- β¨ **Request new features**
|
|
438
|
+
- π‘ **Share ideas and feedback**
|
|
439
|
+
- β **Ask questions**
|
|
440
|
+
|
|
441
|
+
π Visit **[https://assuremind.in/](https://assuremind.in/)** | π§ **[assuremind.contact@gmail.com](mailto:assuremind.contact@gmail.com)**
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
334
445
|
## License
|
|
335
446
|
|
|
336
447
|
MIT β see [LICENSE](LICENSE) for details.
|