assuremind 1.3.0 β†’ 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 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,9 +43,12 @@ 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
 
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
+
44
52
  ### System Requirements
45
53
 
46
54
  | | Minimum | Recommended |
@@ -49,7 +57,7 @@ npx assuremind studio # opens http://localhost:4400
49
57
  | **OS** | macOS / Linux / Windows 10+ | β€” |
50
58
  | **RAM** | 4 GB | 8 GB+ |
51
59
  | **Disk** | ~2 GB (app + Playwright browsers) | 5 GB+ |
52
- | **Java** | β€” | JDK 17+ β€” only for Allure HTML reports ([adoptium.net](https://adoptium.net)) |
60
+ | **Java** | β€” | JDK 17+ β€” only for Allure HTML reports |
53
61
 
54
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.
55
63
 
@@ -302,6 +310,12 @@ If all 5 levels fail, the step is marked **failed** and saved to the healing rep
302
310
 
303
311
  Also supports **GitLab CI** and **Jenkins** β€” or use the built-in **CI Config Generator** in Studio (Run Config β†’ Generate CI Config).
304
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
+
305
319
  Exit code `0` = all passed Β· `1` = failures.
306
320
 
307
321
  ---
@@ -323,6 +337,40 @@ Exit code `0` = all passed Β· `1` = failures.
323
337
 
324
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.
325
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
+
326
374
  ### Visual Regression
327
375
 
328
376
  Pixel-perfect screenshot comparison β€” catch UI changes that functional tests miss. Configure in **Settings** β†’ Visual Regression. Review diffs in **Reports** β†’ Visual Diffs tab.
@@ -371,6 +419,7 @@ Quality gates, PR comments, and notifications β€” configured from Studio, execut
371
419
  | Resource | Location |
372
420
  |----------|----------|
373
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) |
374
423
  | Studio walkthrough | [docs/STUDIO.md](docs/STUDIO.md) |
375
424
  | CLI reference | [docs/CLI-REFERENCE.md](docs/CLI-REFERENCE.md) |
376
425
  | Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) |
@@ -380,6 +429,19 @@ Quality gates, PR comments, and notifications β€” configured from Studio, execut
380
429
 
381
430
  ---
382
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/)** &nbsp;|&nbsp; πŸ“§ **[assuremind.contact@gmail.com](mailto:assuremind.contact@gmail.com)**
442
+
443
+ ---
444
+
383
445
  ## License
384
446
 
385
447
  MIT β€” see [LICENSE](LICENSE) for details.