@testivai/witness-playwright 1.1.0 → 1.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/dist/reporter.js +2 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/reporter.ts +2 -1
- package/src/types.ts +2 -0
package/dist/reporter.js
CHANGED
|
@@ -185,7 +185,8 @@ class TestivAIPlaywrightReporter {
|
|
|
185
185
|
bottom: layoutData.y + layoutData.height
|
|
186
186
|
},
|
|
187
187
|
testivaiConfig: metadata.testivaiConfig,
|
|
188
|
-
screenshotData: screenshotBase64
|
|
188
|
+
screenshotData: screenshotBase64,
|
|
189
|
+
performanceMetrics: metadata.performanceMetrics
|
|
189
190
|
};
|
|
190
191
|
snapshots.push(snapshotPayload);
|
|
191
192
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -291,6 +291,8 @@ export interface SnapshotPayload {
|
|
|
291
291
|
screenshotData?: string;
|
|
292
292
|
/** Performance timing metrics (optional) */
|
|
293
293
|
performanceTimings?: PerformanceTimings;
|
|
294
|
+
/** Performance metrics from browser Performance.getMetrics (optional) */
|
|
295
|
+
performanceMetrics?: any;
|
|
294
296
|
/** Lighthouse results (optional) */
|
|
295
297
|
lighthouseResults?: LighthouseResults;
|
|
296
298
|
/**
|
package/package.json
CHANGED
package/src/reporter.ts
CHANGED
|
@@ -175,7 +175,8 @@ export class TestivAIPlaywrightReporter implements Reporter {
|
|
|
175
175
|
bottom: layoutData.y + layoutData.height
|
|
176
176
|
},
|
|
177
177
|
testivaiConfig: metadata.testivaiConfig,
|
|
178
|
-
screenshotData: screenshotBase64
|
|
178
|
+
screenshotData: screenshotBase64,
|
|
179
|
+
performanceMetrics: metadata.performanceMetrics
|
|
179
180
|
};
|
|
180
181
|
snapshots.push(snapshotPayload);
|
|
181
182
|
}
|
package/src/types.ts
CHANGED
|
@@ -306,6 +306,8 @@ export interface SnapshotPayload {
|
|
|
306
306
|
screenshotData?: string;
|
|
307
307
|
/** Performance timing metrics (optional) */
|
|
308
308
|
performanceTimings?: PerformanceTimings;
|
|
309
|
+
/** Performance metrics from browser Performance.getMetrics (optional) */
|
|
310
|
+
performanceMetrics?: any;
|
|
309
311
|
/** Lighthouse results (optional) */
|
|
310
312
|
lighthouseResults?: LighthouseResults;
|
|
311
313
|
/**
|