@piwitests/reporter 0.66.0 → 0.67.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/global-setup-module.js +100 -14
- package/dist/index.d.ts +45 -21
- package/dist/index.js +2261 -1892
- package/dist/internal/capture/capture-fixtures.d.ts +14 -1
- package/dist/internal/capture/capture-fixtures.js +350 -211
- package/package.json +1 -1
|
@@ -135,6 +135,14 @@ declare class BarIntents {
|
|
|
135
135
|
answered(): void;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
/** A call of the test, as the run page names it: its title and its place in the user's code, when known. */
|
|
139
|
+
interface LiveCall {
|
|
140
|
+
title: string;
|
|
141
|
+
/** The file, relative to the run's working directory, with forward slashes. */
|
|
142
|
+
file: string | null;
|
|
143
|
+
line: number | null;
|
|
144
|
+
}
|
|
145
|
+
|
|
138
146
|
/**
|
|
139
147
|
* Register this package's `dist/` directory as a boxed stack prefix — the list
|
|
140
148
|
* Playwright filters its own frames with — so a wrapped action's step location
|
|
@@ -836,6 +844,11 @@ type CodePlace = {
|
|
|
836
844
|
* as Windows writes them. Null for an error with no such frame (a test timeout).
|
|
837
845
|
*/
|
|
838
846
|
declare function errorPlace(error: unknown, windows?: boolean): CodePlace | null;
|
|
847
|
+
/**
|
|
848
|
+
* The call the test is on, as the run page's live view names it beside each frame, its file relative to the working
|
|
849
|
+
* directory. Null for none.
|
|
850
|
+
*/
|
|
851
|
+
declare function runningCall(testInfo: TestInfo): LiveCall | null;
|
|
839
852
|
/**
|
|
840
853
|
* The fixtures `piwiFixtures` / `extendPiwiFixtures` contribute. The single
|
|
841
854
|
* added fixture is `piwiCapture`: an auto, test-scoped teardown hook that
|
|
@@ -892,4 +905,4 @@ declare const piwiFixtures: Fixtures<PiwiFixtures, PiwiWorkerFixtures, Playwrigh
|
|
|
892
905
|
*/
|
|
893
906
|
declare function extendPiwiFixtures<TestArgs extends FixtureArgs, WorkerArgs extends FixtureArgs>(test: TestType<TestArgs, WorkerArgs>): TestType<TestArgs & PiwiFixtures, WorkerArgs & PiwiWorkerFixtures>;
|
|
894
907
|
|
|
895
|
-
export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, ProbeArg, 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, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };
|
|
908
|
+
export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, ProbeArg, 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, runningCall, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };
|