@tracelane/wdio 0.1.0-alpha.16 → 0.1.0-alpha.18
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 +2 -2
- package/dist/options.d.ts +1 -1
- package/dist/options.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ export const config: Options.Testrunner = {
|
|
|
87
87
|
## How it works
|
|
88
88
|
|
|
89
89
|
- On the first test, the Service injects an rrweb recorder bundle into the page and installs an in-page event buffer (`window.__tracelane__events`).
|
|
90
|
-
- The Node side drains that buffer on a poll (default every
|
|
90
|
+
- The Node side drains that buffer on a poll (default every 500 ms) and on every `afterTest`, re-injecting after each navigation.
|
|
91
91
|
- In `failed` mode (default) a passing test discards its buffer; a failing test's buffer is handed to [`@tracelane/report`](https://github.com/Cubenest/rrweb-stack/tree/main/packages/tracelane-report), which builds the single offline HTML (≤ 25 MB).
|
|
92
92
|
|
|
93
93
|
## Options
|
|
@@ -100,7 +100,7 @@ export const config: Options.Testrunner = {
|
|
|
100
100
|
| `capture.network` | `boolean` | `true` | Capture network requests via the in-page `rrweb/network@1` plugin — all browsers, no CDP. Privacy-first: only URL/method/status/timing by default (headers + bodies off; opt in via `capture.networkOptions`). CDP is an optional fallback that adds authoritative status + true no-response failures where it's available. |
|
|
101
101
|
| `capture.networkOptions` | `NetworkRecordOptions` | plugin defaults | Forwarded to the in-page network plugin (`recordHeaders`, `recordBody`, `maskRequestFn`, `payloadHostDenyList`, …). Defaults are privacy-first (headers + bodies off). Ignored when `capture.network` is `false`. |
|
|
102
102
|
| `capture.console` | `boolean` | `true` | Capture `console.*` via the rrweb console plugin. Setting this `false` also drops any `[tracelane.net]` network-error lines from the CDP fallback path, since those surface through `console.error`. |
|
|
103
|
-
| `drainIntervalMs` | `number` | `
|
|
103
|
+
| `drainIntervalMs` | `number` | `500` | Node-side drain poll interval. |
|
|
104
104
|
| `cooldownMs` | `number` | `250` | Re-injection cooldown guard (suppresses double-init on hash/HMR navigation). |
|
|
105
105
|
| `allure` | `boolean` | `false` | Reserved for the v1.1 Allure shim. No-op in v1. |
|
|
106
106
|
| `visualDiff` | `boolean` | `false` | Reserved for the post-MVP visual-diff add-on. No-op in v1. |
|
package/dist/options.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export interface TraceLaneOptions {
|
|
|
61
61
|
capture?: CaptureOptions;
|
|
62
62
|
/** Reserved for the post-MVP visual-diff add-on (P1 PRD §H). No-op in v1. */
|
|
63
63
|
visualDiff?: boolean;
|
|
64
|
-
/** Node-side drain poll interval in ms (ADR-0006). Default
|
|
64
|
+
/** Node-side drain poll interval in ms (ADR-0006). Default 500 (from @tracelane/core when unset). */
|
|
65
65
|
drainIntervalMs?: number;
|
|
66
66
|
/** Re-injection cooldown guard in ms (ADR-0006). Default 250. */
|
|
67
67
|
cooldownMs?: number;
|
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAElE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;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MAAM,eAAe,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tracelane/wdio",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.18",
|
|
4
4
|
"description": "WebdriverIO Service that records rrweb sessions and writes a self-contained HTML report on failed tests. The user-facing tracelane integration for WDIO.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tracelane",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tracelane/core": "0.1.0-alpha.
|
|
42
|
-
"@tracelane/report": "0.1.0-alpha.
|
|
41
|
+
"@tracelane/core": "0.1.0-alpha.13",
|
|
42
|
+
"@tracelane/report": "0.1.0-alpha.15"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@wdio/types": "^9.0.0",
|