@ia-qa/self-healing 1.6.8 β 1.6.11
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 +21 -2
- package/TUTORIAL.md +17 -1
- package/dist/aom.d.ts +8 -0
- package/dist/aom.js.map +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/audit.js +2 -8
- package/dist/cli/audit.js.map +1 -1
- package/dist/cli/diff.d.ts +19 -0
- package/dist/cli/diff.js +87 -17
- package/dist/cli/diff.js.map +1 -1
- package/dist/cli/fix.js +5 -3
- package/dist/cli/fix.js.map +1 -1
- package/dist/cli/history.js +1 -1
- package/dist/cli/history.js.map +1 -1
- package/dist/cli/index.js +18 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/ingest.js +5 -8
- package/dist/cli/ingest.js.map +1 -1
- package/dist/cli/map.d.ts +14 -1
- package/dist/cli/map.js +86 -35
- package/dist/cli/map.js.map +1 -1
- package/dist/cli/run.js +14 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/ui.js +21 -2
- package/dist/cli/ui.js.map +1 -1
- package/dist/cli-ai/index.js +3 -3
- package/dist/cli-ai/index.js.map +1 -1
- package/dist/config.d.ts +50 -0
- package/dist/config.js +63 -1
- package/dist/config.js.map +1 -1
- package/dist/fixEngine.d.ts +2 -0
- package/dist/fixEngine.js +7 -0
- package/dist/fixEngine.js.map +1 -1
- package/dist/htmlReport.js +27 -0
- package/dist/htmlReport.js.map +1 -1
- package/dist/ingest.d.ts +18 -0
- package/dist/ingest.js +0 -0
- package/dist/ingest.js.map +1 -1
- package/dist/mcp/server.js +5 -5
- package/dist/mcp/server.js.map +1 -1
- package/dist/nameMask.d.ts +110 -0
- package/dist/nameMask.js +0 -0
- package/dist/nameMask.js.map +1 -0
- package/dist/ui/page.js +79 -6
- package/dist/ui/page.js.map +1 -1
- package/dist/ui/server.d.ts +9 -0
- package/dist/ui/server.js +3 -0
- package/dist/ui/server.js.map +1 -1
- package/dist/update.d.ts +104 -0
- package/dist/update.js +297 -0
- package/dist/update.js.map +1 -0
- package/dist/volatile.d.ts +2 -0
- package/dist/volatile.js +2 -0
- package/dist/volatile.js.map +1 -1
- package/package.json +2 -2
- package/skills/ia-qa-heal/SKILL.md +11 -1
package/README.md
CHANGED
|
@@ -148,6 +148,18 @@ Everything the tool needs lives in **one JSON file**, written for you by `ia-qa-
|
|
|
148
148
|
// prefix href:/selector:/name:/role: β without one, tried against href, selector and name.
|
|
149
149
|
"volatile": ["href:*source=rss*", "href:https://blog.example.com/*"],
|
|
150
150
|
|
|
151
|
+
// π NAMEMASK β labels that carry a counter, a total or a clock ("Cart (3)",
|
|
152
|
+
// "π Smithery 3.2k calls"). The *label* rotates, the element does not β so
|
|
153
|
+
// unlike `volatile`, the element stays fully under contract (role, selector and
|
|
154
|
+
// href still gate, a selector break on it still BLOCKs) and only the name stops
|
|
155
|
+
// being compared. Applied at comparison time: the contracts on disk keep the raw
|
|
156
|
+
// label, so adding or removing a mask never needs a re-map.
|
|
157
|
+
// Same glob dialect as `volatile`, no field prefix. A pattern with no stable text
|
|
158
|
+
// ("*") is refused at load. At runtime a mask is also dropped, loudly, if it would
|
|
159
|
+
// swallow a label your tests locate by name, or leave two elements of one role
|
|
160
|
+
// sharing a name.
|
|
161
|
+
"nameMask": ["Cart (*)", "π Smithery * calls"],
|
|
162
|
+
|
|
151
163
|
"ai": { "β¦": "optional AI add-on β see below" }
|
|
152
164
|
}
|
|
153
165
|
```
|
|
@@ -159,6 +171,7 @@ Everything the tool needs lives in **one JSON file**, written for you by `ia-qa-
|
|
|
159
171
|
1. **Separate configs/runs** β one `.ia-qa/` per role, selected with `--config <dir>` (see **Monorepos** below), or
|
|
160
172
|
2. **Let your own test suite log in** β run `ia-qa-heal run` with your `testCommand`; it sets `IAQA_CAPTURE=1` and the contract is captured *during your suite*, so **whatever logins your tests already do (any number of users) are covered** β no `auth` block needed.
|
|
161
173
|
- **"My diff BLOCKs on links that justβ¦ rotate (a news feed, a blog widget)?"** β That is content churn, not UI drift: the feed's links entered the contract as if they were buttons, and the next capture caught the feed mid-rotation. Name what rotates in `"volatile"` (see above) and it never enters a contract again β the diff even prints a hint pointing here when a BLOCK is made of lost external links.
|
|
174
|
+
- **"The same rows come back as `renamed` every run β a cart counter, a call total, a clock."** β Only the *label* is moving, so only the label should stop being compared: put the pattern in `"nameMask"` (`"Cart (*)"`), not in `"volatile"`. `volatile` would delete the element from the contract β counter, button, href and coverage together β so a real selector break on it would go unnoticed forever; a mask keeps all of that gating and exempts the name alone. The diff prints the exact config line to paste when it spots the pattern. Two masks it refuses to apply, and says so: one that would hide a label your tests locate by name (that is a red suite behind a green gate), and one that would leave two elements of the same role wearing one name (a locator coin flip the mask itself created).
|
|
162
175
|
- **"How do I add a page behind a click, not a URL?"** β add `steps` to that page (see `billing` above): a list of `{ "click": { "role": "...", "name": "..." } }`. Named by role + accessible name, exactly like the contract β never a CSS selector.
|
|
163
176
|
- **"My app spans several domains behind a single sign-on (federated SSO) β does `map` cover it?"** β **Not with one `auth` block.** `auth` runs **one** login against **one** domain, before the first page. A federated IdP that re-challenges each project/domain with its own scope (`?projectName=β¦`, a different sub-domain per portal) is never satisfied by that single login β the second domain bounces back to a login the first one never covered, and the page maps empty (map now warns when an authenticated target returns 0 elements). Two ways through: **one `.ia-qa/` per domain/portal**, each selected with `--config <dir>` (see **Monorepos** below), or **`ia-qa-heal run` with `IAQA_CAPTURE=1`** so your own suite β which already handles the full SSO dance (cookies, redirects, per-project scope) β does the auth and the contract is captured during that real run. For a multi-portal app, capture-during-run is the intended path; `map --auth` is for single-domain apps.
|
|
164
177
|
|
|
@@ -268,6 +281,10 @@ It opens a local page with three things the terminal cannot give you:
|
|
|
268
281
|
|
|
269
282
|
Nothing is uploaded, there is no telemetry and no external asset β the page is inline HTML/CSS/JS and every byte it shows came off your disk. It refuses to start under CI, where an interactive surface would just hang; use `--json`, `--junit` or the exit code there.
|
|
270
283
|
|
|
284
|
+
**One request does leave, and it is stated rather than buried:** at startup, at most once a day, `ui` asks `registry.npmjs.org` whether a newer version of this package exists, so the banner can tell you. The desktop shortcut launches a fixed path on disk, and the person clicking it does not own a terminal β this is the only way they would ever find out. It sends a request for a public package's version number: nothing about your app, your tests, your contracts or your results, no telemetry, no identifier. The answer is cached in `~/.ia-qa/update-check.json`, the terminal names the host before the request happens, and **`ia-qa-heal ui --offline` removes it entirely**.
|
|
285
|
+
|
|
286
|
+
The banner stops at the command to paste. It installs nothing, and there is no button that would: the console's authority is exactly the CLI's, and `npm install` is a different binary that runs whatever lifecycle scripts the registry serves β wiring that to a button would widen a leaked token from "edits my test files" to "runs arbitrary code as me". If you started through `npx`, it says so and tells you there is nothing to install.
|
|
287
|
+
|
|
271
288
|
### Several projects β the switcher
|
|
272
289
|
|
|
273
290
|
The header carries a **Project** dropdown as soon as there is more than one. It is governed by a single rule:
|
|
@@ -376,7 +393,7 @@ npx ia-qa-heal ingest tests/ # or no args: reads config.testPaths
|
|
|
376
393
|
|
|
377
394
|
Statically scans your tests/POMs β `.ia-qa/usage.json`. Two halves, because suites are written two ways:
|
|
378
395
|
|
|
379
|
-
- **Selectors** β Playwright, Cypress, Selenium call shapes +
|
|
396
|
+
- **Selectors** β Playwright, Cypress, Selenium call shapes + page-object declarations (`loginButton = '#login .cta'`, any name, any language). `diff` annotates every drifted selector with *used NΓ in M test files*, and `fix` no longer needs the test paths on the command line.
|
|
380
397
|
- **Names** β the `get|find|queryByβ¦` family (Playwright, Testing Library, `@testing-library/cypress`): `ByRole`, `ByLabel(Text)`, `ByPlaceholder(Text)`, `ByText`, `ByTitle`, `ByAltText` β plus `cy.contains(β¦)` (both forms) and Selenium's `By.linkText` / `By.LINK_TEXT` / `By.PARTIAL_LINK_TEXT`. These are what makes the rename gate below possible.
|
|
381
398
|
|
|
382
399
|
Purely static: no execution, no network. A locator built by concatenation or holding `${β¦}` is invisible here β and invisible to `fix` too, which is why it is skipped rather than guessed at.
|
|
@@ -654,7 +671,9 @@ npx ia-qa-heal fix .ia-qa/baseline/login.json .ia-qa/mapping/login.json login.pa
|
|
|
654
671
|
|
|
655
672
|
One line changes and every test that goes through `LoginPage` is fixed at once β the POM is exactly the leverage `fix` is built for. Review with `git diff`, run your suite, commit. Nothing was committed for you.
|
|
656
673
|
|
|
657
|
-
**
|
|
674
|
+
**Naming does not matter, paths do.** `ingest` inventories a declaration whose value *reads* like a selector, whatever the property is called β `loginButton = '#login .cta'`, `submitSelector = 'β¦'`, `LOGIN_LINK = "a[data-testid='login']"` (Python and Java page objects included) β as well as framework calls it already knows (`this.page.locator('#login')`). What it cannot do is find a file you never pointed it at: if your POMs live in `pages/` and `testPaths` says `tests/`, nothing there is inventoried, and `diff` will say *0 of N drifted selectors referenced by your tests* β which reads like good news and is not. It now says so; widen `testPaths` and re-run `ingest`.
|
|
675
|
+
|
|
676
|
+
Neighbouring constants (`baseUrl`, a fixture path, a brand colour) are excluded, and a selector built by concatenation or holding `${β¦}` is invisible β to `fix` too, which is why it is skipped rather than guessed at.
|
|
658
677
|
|
|
659
678
|
## In CI
|
|
660
679
|
|
package/TUTORIAL.md
CHANGED
|
@@ -734,6 +734,22 @@ That's live content (a news feed, a blog widget) that entered the contract as if
|
|
|
734
734
|
|
|
735
735
|
Each pattern is a glob (`*` = anything, case-insensitive, whole string), with an optional `href:` / `selector:` / `name:` / `role:` prefix β without one it's tried against href, selector and name. The diff prints a hint pointing here when a BLOCK is made of lost external links.
|
|
736
736
|
|
|
737
|
+
**"The same rows come back as `renamed` every single run β a cart counter, a call total, a clock"**
|
|
738
|
+
Here the *element* is not rotating, its *label* is: `Cart (3)` β `Cart (5)`, `π Smithery 3.2k calls` β `π Smithery 4.1k calls`. Reaching for `volatile` would work, and it would cost far too much β the element leaves the contract entirely, so a real selector break on that button would never be caught again. Mask the label instead and keep the element gating:
|
|
739
|
+
|
|
740
|
+
```jsonc
|
|
741
|
+
"nameMask": ["Cart (*)", "π Smithery * calls"]
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
Same glob dialect, no field prefix. Role, selector and href are still compared, so the button still BLOCKs if it moves or disappears β only the name stops being drift. Masking happens when the diff runs, not when the page is captured, so the contracts on disk keep the real label and adding or removing a mask never needs a re-map.
|
|
745
|
+
|
|
746
|
+
Two things it refuses to do, out loud:
|
|
747
|
+
|
|
748
|
+
- if a label the mask would swallow is one your tests locate by name (`getByRole('link', { name: 'Cart (3)' })`), the mask is **not applied** β it names the label and the `file:line`. Masking that would be a green gate over a suite that is about to go red;
|
|
749
|
+
- if the mask would leave two elements of the same role wearing one name (`Item 1` + `Item 2` β `Item *`), it is **not applied** either β that is a locator coin flip the mask itself would have created, and it would turn a clean `healable` into `ambiguous`.
|
|
750
|
+
|
|
751
|
+
Rule of thumb: **`nameMask` when the label rotates, `volatile` when the element does.**
|
|
752
|
+
|
|
737
753
|
---
|
|
738
754
|
|
|
739
755
|
## 11. FAQ
|
|
@@ -751,7 +767,7 @@ No. This tool brings its own browser. One install, not two.
|
|
|
751
767
|
All of them, and any language. The `fix` command replaces the selector wherever it appears as a quoted string β that's the same in JavaScript, Python, Java, C#, Ruby.
|
|
752
768
|
|
|
753
769
|
**I use a Page Object Model β does that work?**
|
|
754
|
-
That's the best case. A POM keeps every selector in one file, so a broken selector is one property to fix, not a hunt across the suite. `fix` rewrites the selector string right there in the POM, and every test that uses it is fixed at once.
|
|
770
|
+
That's the best case. A POM keeps every selector in one file, so a broken selector is one property to fix, not a hunt across the suite. `fix` rewrites the selector string right there in the POM, and every test that uses it is fixed at once. `ingest` reads those declarations whatever they are named (`loginButton = '#login .cta'`), so `fix` finds the file on its own β the one thing to get right is `testPaths`: it must cover the folder your page objects live in, not just `tests/`.
|
|
755
771
|
|
|
756
772
|
**Why is my "renamed" element not fixed automatically?**
|
|
757
773
|
Because the selector still works β your test isn't broken. But the button now says something different, which might be a real change worth failing on. Only a human knows.
|
package/dist/aom.d.ts
CHANGED
|
@@ -25,6 +25,14 @@ export interface MappedElement {
|
|
|
25
25
|
* never part of element identity, so it does not affect diff or layout matching.
|
|
26
26
|
*/
|
|
27
27
|
href?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Set by `nameMask` on an in-memory copy, at comparison time only β never written
|
|
30
|
+
* to disk, never produced by capture. `name` then holds the mask (`Cart (*)`) and
|
|
31
|
+
* `rawName` what the page actually read. Anything that would put a name into a
|
|
32
|
+
* *test file* must check this: a glob is not a locator.
|
|
33
|
+
*/
|
|
34
|
+
rawName?: string;
|
|
35
|
+
nameMasked?: boolean;
|
|
28
36
|
}
|
|
29
37
|
export interface PageMapping {
|
|
30
38
|
page: string;
|
package/dist/aom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aom.js","sourceRoot":"","sources":["../src/aom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"aom.js","sourceRoot":"","sources":["../src/aom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,sCAKC;AAED,gEAEC;AAED,kCAwBC;AAED,kCAQC;AApHD,uCAAyB;AACzB,2CAA6B;AAE7B,qCAAmD;AACnD,+CAAkD;AAgDlD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,aAAa,CAC3B,QAAoD,EACpD,OAAmD;IAEnD,OAAO,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,IAAI,QAAS,CAAC,UAAU,KAAK,OAAO,EAAE,UAAU,CAAC;AACvF,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAAC,IAAU;IACzD,OAAO,IAAI,CAAC,QAAQ,CAAC,uBAAa,CAA6B,CAAC;AAClE,CAAC;AAED,SAAgB,WAAW,CAAC,OAAoB,EAAE,MAAc,IAAA,mBAAU,GAAE;IAC1E,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvC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;QAAC,MAAM,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,WAAW,CAAC,QAAgB,EAAE,MAAc,IAAA,mBAAU,GAAE;IACtE,MAAM,IAAI,GAAG,IAAA,oBAAW,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACb,8BAA8B,QAAQ,MAAM,IAAI,2BAA2B,QAAQ,WAAW,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAgB,CAAC;AAClE,CAAC"}
|
package/dist/cli/args.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.KNOWN_FLAGS = {
|
|
|
28
28
|
run: ['--yes', '--no-verify', '--locators', '--report', '--junit', '--json', '--open'],
|
|
29
29
|
skill: ['--install', '--user', '--dir', '--print', '--force'],
|
|
30
30
|
history: ['--json', '--limit'],
|
|
31
|
-
ui: ['--port', '--no-open', '--shortcut', '--keep-alive', '--forget'],
|
|
31
|
+
ui: ['--port', '--no-open', '--shortcut', '--keep-alive', '--forget', '--offline'],
|
|
32
32
|
};
|
|
33
33
|
function rejectUnknownFlags(command, args) {
|
|
34
34
|
const known = exports.KNOWN_FLAGS[command];
|
package/dist/cli/args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":";;;AA6BA,gDAeC;AA5CD;;;;;;;;;;;GAWG;AACU,QAAA,WAAW,GAAsC;IAC5D,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC;I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
|
@@ -185,14 +185,8 @@ async function runAudit(args) {
|
|
|
185
185
|
else {
|
|
186
186
|
usage = (0, ingest_1.loadUsage)();
|
|
187
187
|
if (!usage) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
configured = (0, config_1.loadConfig)().testPaths;
|
|
191
|
-
}
|
|
192
|
-
catch {
|
|
193
|
-
/* covered by the message below */
|
|
194
|
-
}
|
|
195
|
-
if (configured && configured.length > 0)
|
|
188
|
+
const configured = (0, config_1.configuredTestPaths)();
|
|
189
|
+
if (configured.length > 0)
|
|
196
190
|
usage = (0, ingest_1.ingestPaths)(configured).usage;
|
|
197
191
|
}
|
|
198
192
|
}
|
package/dist/cli/audit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/cli/audit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,0CAQC;AAqED,4CA0CC;AAED,4BAoNC;AAvYD,uCAAyB;AACzB,2CAA6B;AAE7B,4CAAkD;AAClD,sCAAsE;AACtE,sCAA0D;AAC1D,kDAAqG;AACrG,uCAAqD;AA6CrD,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B;;;GAGG;AACH,SAAgB,eAAe,CAAC,QAAgB,EAAE,MAAc;IAC9D,IAAI,MAAM,KAAK,EAAE,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvD,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,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KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC"}
|
package/dist/cli/diff.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MaskOutcome } from '../nameMask';
|
|
1
2
|
import { Usage } from '../ingest';
|
|
2
3
|
import { NameDriftFinding } from '../nameDrift';
|
|
3
4
|
import { FixOutcome, ReportEvidence } from '../htmlReport';
|
|
@@ -65,6 +66,17 @@ export declare function writeDriftReport(reportPath: string, agg: DirReport, rep
|
|
|
65
66
|
isLayout: boolean;
|
|
66
67
|
}>, baselineDirPath: string, currentDirPath: string, usage?: Usage | null, open?: boolean, outcome?: FixOutcome): void;
|
|
67
68
|
export declare function runDiff(args: string[]): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* What `nameMask` did, in two registers.
|
|
71
|
+
*
|
|
72
|
+
* The applied half is one quiet line: the rows it silenced are gone from the output,
|
|
73
|
+
* and a gate that silently stops reporting something has to say so somewhere.
|
|
74
|
+
*
|
|
75
|
+
* The refused half is loud, on stderr, because it is a config that does not do what
|
|
76
|
+
* its author believes it does β and in the `referenced-by-tests` case, believing it
|
|
77
|
+
* would mean believing a green gate over a suite that is about to go red.
|
|
78
|
+
*/
|
|
79
|
+
export declare function printNameMasks(outcome: MaskOutcome | undefined): void;
|
|
68
80
|
/**
|
|
69
81
|
* The name-drift section of a human verdict.
|
|
70
82
|
*
|
|
@@ -116,6 +128,8 @@ export interface DirReport {
|
|
|
116
128
|
* header renames once, not once per page that carries it.
|
|
117
129
|
*/
|
|
118
130
|
nameDrift?: NameDriftFinding[];
|
|
131
|
+
/** `config.nameMask`'s effect across the walk β applied patterns and refusals, unioned. */
|
|
132
|
+
nameMask?: MaskOutcome;
|
|
119
133
|
}
|
|
120
134
|
export declare function aggregateReports(reports: Array<{
|
|
121
135
|
name: string;
|
|
@@ -170,4 +184,9 @@ export interface Report {
|
|
|
170
184
|
* inventoried the tests β absent means "not measured", never "none".
|
|
171
185
|
*/
|
|
172
186
|
nameDrift?: NameDriftFinding[];
|
|
187
|
+
/**
|
|
188
|
+
* What `config.nameMask` did to this comparison β patterns applied, and patterns
|
|
189
|
+
* refused with the reason. Absent when no mask is configured.
|
|
190
|
+
*/
|
|
191
|
+
nameMask?: MaskOutcome;
|
|
173
192
|
}
|
package/dist/cli/diff.js
CHANGED
|
@@ -41,6 +41,7 @@ exports.pageShotMap = pageShotMap;
|
|
|
41
41
|
exports.buildEvidence = buildEvidence;
|
|
42
42
|
exports.writeDriftReport = writeDriftReport;
|
|
43
43
|
exports.runDiff = runDiff;
|
|
44
|
+
exports.printNameMasks = printNameMasks;
|
|
44
45
|
exports.printNameDrift = printNameDrift;
|
|
45
46
|
exports.driftSummaryLine = driftSummaryLine;
|
|
46
47
|
exports.collectDirDiff = collectDirDiff;
|
|
@@ -49,7 +50,7 @@ exports.printAggregate = printAggregate;
|
|
|
49
50
|
const fs = __importStar(require("fs"));
|
|
50
51
|
const path = __importStar(require("path"));
|
|
51
52
|
const aom_1 = require("../aom");
|
|
52
|
-
const
|
|
53
|
+
const nameMask_1 = require("../nameMask");
|
|
53
54
|
const config_1 = require("../config");
|
|
54
55
|
const ingest_1 = require("../ingest");
|
|
55
56
|
const captureMerge_1 = require("../captureMerge");
|
|
@@ -359,7 +360,7 @@ async function runDiff(args) {
|
|
|
359
360
|
return;
|
|
360
361
|
}
|
|
361
362
|
const usage = (0, ingest_1.loadUsage)();
|
|
362
|
-
const report = attachBaselineHrefs((0,
|
|
363
|
+
const report = attachBaselineHrefs((0, nameMask_1.diffWithMasks)(baseline, current, (0, nameMask_1.loadNameMasks)(), usage), baseline);
|
|
363
364
|
// A rename is harmless to a CSS-anchored suite and fatal to a name-anchored
|
|
364
365
|
// one. Only the test inventory can tell the two apart, so the verdict is
|
|
365
366
|
// raised here rather than inside the shared matcher.
|
|
@@ -370,6 +371,7 @@ async function runDiff(args) {
|
|
|
370
371
|
}
|
|
371
372
|
else {
|
|
372
373
|
printHuman(report, files, usage);
|
|
374
|
+
printNameMasks(report.nameMask);
|
|
373
375
|
printNameDrift(report.nameDrift);
|
|
374
376
|
}
|
|
375
377
|
const single = [{ name: path.basename(files[1]).replace(/\.json$/, ''), report, isLayout: false }];
|
|
@@ -390,6 +392,34 @@ async function runDiff(args) {
|
|
|
390
392
|
if (!json)
|
|
391
393
|
driftSummaryLine('diff', report.verdict, report.counts, report.nameDrift);
|
|
392
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* What `nameMask` did, in two registers.
|
|
397
|
+
*
|
|
398
|
+
* The applied half is one quiet line: the rows it silenced are gone from the output,
|
|
399
|
+
* and a gate that silently stops reporting something has to say so somewhere.
|
|
400
|
+
*
|
|
401
|
+
* The refused half is loud, on stderr, because it is a config that does not do what
|
|
402
|
+
* its author believes it does β and in the `referenced-by-tests` case, believing it
|
|
403
|
+
* would mean believing a green gate over a suite that is about to go red.
|
|
404
|
+
*/
|
|
405
|
+
function printNameMasks(outcome) {
|
|
406
|
+
if (!outcome)
|
|
407
|
+
return;
|
|
408
|
+
if (outcome.applied.length > 0) {
|
|
409
|
+
const total = outcome.applied.reduce((n, a) => n + a.count, 0);
|
|
410
|
+
console.log(`\n π ${total} label${total === 1 ? '' : 's'} masked by "nameMask" ` +
|
|
411
|
+
`(${outcome.applied.map((a) => `${a.pattern} Γ${a.count}`).join(', ')}).`);
|
|
412
|
+
console.log(` Those elements stay under contract β role, selector and href are still compared.`);
|
|
413
|
+
}
|
|
414
|
+
for (const r of outcome.refused) {
|
|
415
|
+
console.error(`\n β οΈ nameMask ${JSON.stringify(r.pattern)} was NOT applied β ${r.detail}.`);
|
|
416
|
+
console.error(r.reason === 'referenced-by-tests'
|
|
417
|
+
? ` Rename it in the test first, or drop the mask. A mask over a label your suite\n` +
|
|
418
|
+
` locates by name is the one shape that turns a red suite into a green gate.`
|
|
419
|
+
: ` Narrow the pattern so it keeps the two apart, or use "volatile" if the elements\n` +
|
|
420
|
+
` themselves rotate rather than their labels.`);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
393
423
|
/**
|
|
394
424
|
* The name-drift section of a human verdict.
|
|
395
425
|
*
|
|
@@ -407,7 +437,9 @@ function printNameDrift(findings) {
|
|
|
407
437
|
for (const f of [...manual, ...fixable])
|
|
408
438
|
console.log((0, nameDrift_1.formatFinding)(f));
|
|
409
439
|
if (fixable.length > 0) {
|
|
410
|
-
console.log(
|
|
440
|
+
console.log(fixable.length === 1
|
|
441
|
+
? `\n 1 of them is deterministic: \`ia-qa-heal fix\` rewrites the call.`
|
|
442
|
+
: `\n ${fixable.length} of them are deterministic: \`ia-qa-heal fix\` rewrites the calls.`);
|
|
411
443
|
}
|
|
412
444
|
}
|
|
413
445
|
/**
|
|
@@ -480,6 +512,7 @@ async function runDirDiff(baselineDir, currentDir, opts) {
|
|
|
480
512
|
}
|
|
481
513
|
else {
|
|
482
514
|
printAggregate(aggregate, reports, baselineDir, currentDir, usage);
|
|
515
|
+
printNameMasks(aggregate.nameMask);
|
|
483
516
|
printNameDrift(aggregate.nameDrift);
|
|
484
517
|
}
|
|
485
518
|
if (opts.reportPath) {
|
|
@@ -516,8 +549,9 @@ function collectDirDiff(baselineDir, currentDir) {
|
|
|
516
549
|
// Read once for the whole walk: `run` and `diff --dir` both come through here,
|
|
517
550
|
// so name drift is assessed on every path that produces a directory verdict.
|
|
518
551
|
const usage = (0, ingest_1.loadUsage)();
|
|
552
|
+
const masks = (0, nameMask_1.loadNameMasks)();
|
|
519
553
|
const assess = (baseline, current) => {
|
|
520
|
-
const report = attachBaselineHrefs((0,
|
|
554
|
+
const report = attachBaselineHrefs((0, nameMask_1.diffWithMasks)(baseline, current, masks, usage), baseline);
|
|
521
555
|
report.nameDrift = (0, nameDrift_1.assessNameDrift)(report.rows, current.elements, usage);
|
|
522
556
|
report.verdict = (0, nameDrift_1.escalateVerdict)(report.verdict, report.nameDrift);
|
|
523
557
|
return report;
|
|
@@ -605,9 +639,11 @@ function aggregateReports(reports) {
|
|
|
605
639
|
// Per-page verdicts are already escalated by `collectDirDiff`, so the aggregate
|
|
606
640
|
// inherits the raise for free β this only collects the findings for reporting.
|
|
607
641
|
const nameDrift = (0, nameDrift_1.mergeFindings)(reports.map((r) => r.report.nameDrift ?? []));
|
|
642
|
+
const nameMask = (0, nameMask_1.mergeMaskOutcomes)(reports.map((r) => r.report.nameMask));
|
|
608
643
|
return {
|
|
609
644
|
verdict,
|
|
610
645
|
...(nameDrift.length > 0 ? { nameDrift } : {}),
|
|
646
|
+
...(nameMask ? { nameMask } : {}),
|
|
611
647
|
layoutVerdict,
|
|
612
648
|
layoutCounts,
|
|
613
649
|
pageReports: pageReports.map((r) => ({
|
|
@@ -630,7 +666,7 @@ function printAggregate(agg, reports, baselineDir, currentDir, usage) {
|
|
|
630
666
|
if (against)
|
|
631
667
|
console.log(against);
|
|
632
668
|
console.log(` ${path.basename(baselineDir)} β ${path.basename(currentDir)}`);
|
|
633
|
-
console.log(` ${reports.length} files diffed`);
|
|
669
|
+
console.log(` ${reports.length} ${reports.length === 1 ? 'file' : 'files'} diffed`);
|
|
634
670
|
console.log(` ${agg.totals.ok} ok Β· ${agg.totals.renamed} renamed Β· ${agg.totals.healable} healable Β· ` +
|
|
635
671
|
`${agg.totals.ambiguous} ambiguous Β· ${agg.totals.lost} lost Β· ${agg.totals.rebound} rebound Β· ${agg.totals.added} new`);
|
|
636
672
|
// Layout section
|
|
@@ -685,6 +721,8 @@ function printAggregate(agg, reports, baselineDir, currentDir, usage) {
|
|
|
685
721
|
}
|
|
686
722
|
if (used.length > 10)
|
|
687
723
|
console.log(` β¦ and ${used.length - 10} more`);
|
|
724
|
+
if (used.length === 0)
|
|
725
|
+
unreferencedNote(usage, ' ');
|
|
688
726
|
}
|
|
689
727
|
}
|
|
690
728
|
anonymousNote(reports.flatMap((r) => [...r.report.rows, ...r.report.added]));
|
|
@@ -735,7 +773,7 @@ function readMapping(file) {
|
|
|
735
773
|
}
|
|
736
774
|
let parsed;
|
|
737
775
|
try {
|
|
738
|
-
parsed = JSON.parse(raw);
|
|
776
|
+
parsed = JSON.parse((0, config_1.stripBom)(raw));
|
|
739
777
|
}
|
|
740
778
|
catch (e) {
|
|
741
779
|
console.error(`β "${file}" is not valid JSON: ${e instanceof Error ? e.message : String(e)}`);
|
|
@@ -784,10 +822,13 @@ function volatileNote(rows) {
|
|
|
784
822
|
* reason: only the user knows what rotates by design, so this names what it saw and the
|
|
785
823
|
* one action that exists today β it never filters a row or moves a verdict.
|
|
786
824
|
*
|
|
787
|
-
* It points at `
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
825
|
+
* It points at `nameMask`, which is the remedy that matches what it detected: only the
|
|
826
|
+
* *label* rotates here, so only the label should stop being compared β the element stays
|
|
827
|
+
* under contract on role, selector and href. `volatile` is offered only for the groups a
|
|
828
|
+
* mask cannot express (a label with no stable text left, like a clock), and its cost is
|
|
829
|
+
* stated out loud, because dropping the element from the gate entirely is the whole
|
|
830
|
+
* decision. Nothing here suggests a config key the loader would accept and then ignore:
|
|
831
|
+
* an ignored declaration is exactly the silent failure this hint exists to end.
|
|
791
832
|
*/
|
|
792
833
|
const MAX_HINT_GROUPS = 6;
|
|
793
834
|
function nameDriftNote(rows) {
|
|
@@ -795,21 +836,28 @@ function nameDriftNote(rows) {
|
|
|
795
836
|
if (groups.length === 0)
|
|
796
837
|
return;
|
|
797
838
|
const total = groups.reduce((n, g) => n + g.count, 0);
|
|
839
|
+
const maskable = groups.filter((g) => g.pattern !== null);
|
|
798
840
|
console.log(` π‘ ${total} renamed ${total === 1 ? 'label differs' : 'labels differ'} only by a number β a counter, total or`);
|
|
799
841
|
console.log(` clock drifts on its own, so ${total === 1 ? 'this row comes' : 'these rows come'} back every run. If they rotate by`);
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
842
|
+
if (maskable.length > 0) {
|
|
843
|
+
console.log(` design, stop comparing the label with "nameMask" in .ia-qa/config.json`);
|
|
844
|
+
console.log(` (the element stays under contract β role, selector and href still gate):`);
|
|
845
|
+
}
|
|
846
|
+
else {
|
|
847
|
+
console.log(` design, keep them out of the contract with "volatile" in .ia-qa/config.json`);
|
|
848
|
+
console.log(` (which drops the element from the gate entirely, coverage included):`);
|
|
849
|
+
}
|
|
850
|
+
// A pattern with no stable part cannot be a mask β it would match every label in the
|
|
851
|
+
// app β so those groups fall back to `volatile` by selector, never to a bare `*`.
|
|
804
852
|
const shown = groups.slice(0, MAX_HINT_GROUPS);
|
|
805
853
|
const entries = shown.map((g) => ({
|
|
806
|
-
key: g.pattern ? `"
|
|
854
|
+
key: g.pattern ? `"nameMask": ["${g.pattern}"]` : `"volatile": ["selector:${g.examples[0].selector}"]`,
|
|
807
855
|
group: g,
|
|
808
856
|
}));
|
|
809
857
|
const width = Math.max(...entries.map((e) => e.key.length));
|
|
810
858
|
for (const { key, group } of entries) {
|
|
811
859
|
const e = group.examples[0];
|
|
812
|
-
const why = group.pattern ? '' : ' (no stable
|
|
860
|
+
const why = group.pattern ? '' : ' (no stable text left to mask β the element itself rotates)';
|
|
813
861
|
console.log(` ${key.padEnd(width)} ${group.count} row${group.count === 1 ? ' ' : 's'} e.g. "${e.from}" β "${e.to}"${why}`);
|
|
814
862
|
}
|
|
815
863
|
if (groups.length > shown.length) {
|
|
@@ -872,11 +920,33 @@ function printHuman(report, files, usage) {
|
|
|
872
920
|
if (usage && drift.length > 0) {
|
|
873
921
|
const used = drift.filter((r) => (usage.selectors[r.selector]?.length ?? 0) > 0).length;
|
|
874
922
|
console.log(` π ${used}/${drift.length} drifted selector${drift.length === 1 ? '' : 's'} referenced by your tests (.ia-qa/usage.json)` +
|
|
875
|
-
(used < drift.length ? ' β the rest is noise for your suite.' : '.'));
|
|
923
|
+
(used === 0 ? '' : used < drift.length ? ' β the rest is noise for your suite.' : '.'));
|
|
924
|
+
if (used === 0)
|
|
925
|
+
unreferencedNote(usage, ' ');
|
|
876
926
|
}
|
|
877
927
|
anonymousNote([...drift, ...added]);
|
|
878
928
|
console.log('');
|
|
879
929
|
}
|
|
930
|
+
/**
|
|
931
|
+
* `0/N drifted selectors referenced by your tests` reads as good news, and it is β
|
|
932
|
+
* unless the inventory never saw the files that hold them. The line alone cannot
|
|
933
|
+
* tell the two apart, and the second is the ordinary shape of a Page Object suite
|
|
934
|
+
* whose `testPaths` says `tests/` while every selector lives in `pages/`. There
|
|
935
|
+
* the static scan has nothing to widen: no path, no file, no reference, and a
|
|
936
|
+
* user reading "none of your tests are affected" walks away from real drift.
|
|
937
|
+
*
|
|
938
|
+
* Only at exactly zero: one reference proves the inventory reaches the suite, and
|
|
939
|
+
* a caveat repeated on healthy runs is a caveat nobody reads on the one that matters.
|
|
940
|
+
*/
|
|
941
|
+
function unreferencedNote(usage, indent) {
|
|
942
|
+
const paths = (0, config_1.loadConfig)().testPaths ?? [];
|
|
943
|
+
const scanned = `${usage.scanned} file${usage.scanned === 1 ? '' : 's'} scanned`;
|
|
944
|
+
const where = paths.length > 0
|
|
945
|
+
? `"testPaths" (${paths.join(', ')}) covers every file holding a selector`
|
|
946
|
+
: `"testPaths" in .ia-qa/config.json lists every file holding a selector`;
|
|
947
|
+
console.log(`${indent}β None of them β good news only if ${where},`);
|
|
948
|
+
console.log(`${indent} page objects included (${scanned}). Widen it, then re-run \`ia-qa-heal ingest\`.`);
|
|
949
|
+
}
|
|
880
950
|
/**
|
|
881
951
|
* Elements with no accessible name are the loudest and least actionable part of a
|
|
882
952
|
* live-capture diff: they cannot be healed, matched, or targeted by role + name,
|