@piwitests/reporter 0.74.0 → 0.75.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/dist/cli/index.js +1 -1
- package/dist/index.js +544 -164
- package/dist/internal/capture/capture-fixtures.d.ts +10 -4
- package/dist/internal/capture/capture-fixtures.js +541 -157
- package/package.json +2 -2
|
@@ -218,8 +218,12 @@ declare class LocatorPageLog {
|
|
|
218
218
|
* ended (`ended`), and when the run stops being shared (`unshared`). In a CI run, while anyone watches it in full, it
|
|
219
219
|
* posts too the call its test is in as Playwright logs it (`call-log`): the log's last lines, the point an input action acts on,
|
|
220
220
|
* and the elements the call's locator matches while it waits. Nothing goes from the instance to the page: the
|
|
221
|
-
* view never steers the run
|
|
222
|
-
* `
|
|
221
|
+
* view never steers the run, with one exception: a CI worker of a project that holds a failing CI test for its
|
|
222
|
+
* controllers (`hold`) waits at a failure while a controller watches it, and ends that wait on **Let it go** (`let-go`);
|
|
223
|
+
* one of a project that lets its controllers pause a CI test too (`hold`'s `pause`) pauses its test at its next call,
|
|
224
|
+
* resumes it and ends it as they ask (`pause`, `resume`, `end-test`), saying whether it took a Pause or dropped it,
|
|
225
|
+
* and why (`pause-asked`).
|
|
226
|
+
* Each message is JSON, checked field by field (`parseInstanceToWorker`, `readWorkerToInstance`).
|
|
223
227
|
*
|
|
224
228
|
* An instance that says on the stream what its viewers ask of the images (`view`: the largest size they show one at,
|
|
225
229
|
* in device pixels, the pace, and whether one of them shows the worker in full) takes each frame as its JPEG's bytes
|
|
@@ -1082,6 +1086,8 @@ declare function ariaSnapshotBestEffort(target: Locator, timeout?: number): Prom
|
|
|
1082
1086
|
* yields null and the capture proceeds with the YAML alone.
|
|
1083
1087
|
*/
|
|
1084
1088
|
declare function ariaSnapshotJSONBestEffort(target: Locator, timeout?: number): Promise<string | null>;
|
|
1089
|
+
/** The error a CI test ended from the instance's live view fails with: who ended it, when the instance named them. */
|
|
1090
|
+
declare function endedFromPiwiError(by: string | null): Error;
|
|
1085
1091
|
/** What a stop the bar shows says to an intent: whether it can record, whether its page is a guess, whether it holds. */
|
|
1086
1092
|
interface IntentStop {
|
|
1087
1093
|
record: boolean;
|
|
@@ -1099,7 +1105,7 @@ declare function intentAt(intents: BarIntents, what: RunIntent, stop: IntentStop
|
|
|
1099
1105
|
/**
|
|
1100
1106
|
* A failure's error as its stop names it to the editor, as plain text: the failing error's message without its ANSI
|
|
1101
1107
|
* codes and without the `Error: ` the runner writes before a plain error's message, its lines up to the first blank
|
|
1102
|
-
* one or its call log, four at most
|
|
1108
|
+
* one or its call log, four at most, cut to `MAX_STOP_ERROR` characters (`cutText`); null for an error with no text.
|
|
1103
1109
|
*/
|
|
1104
1110
|
declare function failureError(message: string | undefined): string | null;
|
|
1105
1111
|
/** A place in the test's code. */
|
|
@@ -1187,4 +1193,4 @@ declare const piwiFixtures: Fixtures<PiwiFixtures, PiwiWorkerFixtures, Playwrigh
|
|
|
1187
1193
|
*/
|
|
1188
1194
|
declare function extendPiwiFixtures<TestArgs extends FixtureArgs, WorkerArgs extends FixtureArgs>(test: TestType<TestArgs, WorkerArgs>): TestType<TestArgs & PiwiFixtures, WorkerArgs & PiwiWorkerFixtures>;
|
|
1189
1195
|
|
|
1190
|
-
export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, type ProbeArg, type ProbedAttrs, type RawPageState, type RawVitalEntry, activeResourceLedger, ariaSnapshotBestEffort, ariaSnapshotJSONBestEffort, boxCaptureFrames, buildPageState, callMethod, codeReachRoots, computeCoreVitals, configuredCodeReachRoots, errorPlace, extendPiwiFixtures, failureError, intentAt, internalCall, noteLocatorCall, noteNavigation, noteResourceUse, pageMapFetcher, piwiFixtures, probeElementAttrs, readPageInteraction, recordResourceCensus, resolveCodeReach, runnerTraceSnapshots, runnerTraces, runningCall, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };
|
|
1196
|
+
export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, type ProbeArg, type ProbedAttrs, type RawPageState, type RawVitalEntry, activeResourceLedger, ariaSnapshotBestEffort, ariaSnapshotJSONBestEffort, boxCaptureFrames, buildPageState, callMethod, codeReachRoots, computeCoreVitals, configuredCodeReachRoots, endedFromPiwiError, errorPlace, extendPiwiFixtures, failureError, intentAt, internalCall, noteLocatorCall, noteNavigation, noteResourceUse, pageMapFetcher, piwiFixtures, probeElementAttrs, readPageInteraction, recordResourceCensus, resolveCodeReach, runnerTraceSnapshots, runnerTraces, runningCall, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };
|