@snaplens/healwright 0.1.0 → 0.1.1
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 +37 -0
- package/package.json +13 -3
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @snaplens/healwright
|
|
2
|
+
|
|
3
|
+
> **Causal E2E regression healer for Playwright powered by git diff and AST analysis.**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@snaplens/healwright)
|
|
6
|
+
[](https://github.com/snaplens/healwright/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
Healwright automatically detects when Playwright tests break due to intentional frontend component refactors (e.g. renamed IDs, modernized testids, altered labels), cross-references the failures with your Git diff, and heals the broken locators in your test files.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🚀 Quick Start
|
|
13
|
+
|
|
14
|
+
### 1. Initialize Healwright in your Playwright project
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx @snaplens/healwright init
|
|
18
|
+
```
|
|
19
|
+
This automatically configures `playwright.config.ts` with the `@snaplens/healwright-playwright/reporter` and trace retention.
|
|
20
|
+
|
|
21
|
+
### 2. Auto-heal broken tests
|
|
22
|
+
|
|
23
|
+
Whenever a Playwright test fails:
|
|
24
|
+
```bash
|
|
25
|
+
npx @snaplens/healwright heal
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
In CI / GitHub Actions:
|
|
29
|
+
```bash
|
|
30
|
+
npx @snaplens/healwright heal --base origin/main --ci
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 📄 License
|
|
36
|
+
|
|
37
|
+
MIT © [Snaplens](https://github.com/snaplens)
|
package/package.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snaplens/healwright",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Causal E2E regression healer powered by git diff + AST analysis",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"playwright",
|
|
7
|
+
"self-healing",
|
|
8
|
+
"cli",
|
|
9
|
+
"ast",
|
|
10
|
+
"git-diff",
|
|
11
|
+
"e2e-testing",
|
|
12
|
+
"causal-regression"
|
|
13
|
+
],
|
|
5
14
|
"license": "MIT",
|
|
6
15
|
"files": [
|
|
7
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
8
18
|
],
|
|
9
19
|
"bin": {
|
|
10
20
|
"healwright": "./dist/cli.js"
|
|
@@ -13,7 +23,7 @@
|
|
|
13
23
|
"access": "public"
|
|
14
24
|
},
|
|
15
25
|
"dependencies": {
|
|
16
|
-
"@snaplens/healwright-core": "0.1.
|
|
26
|
+
"@snaplens/healwright-core": "0.1.1",
|
|
17
27
|
"ts-morph": "^24.0.0"
|
|
18
28
|
},
|
|
19
29
|
"scripts": {
|