@arghajit/dummy 0.1.0-beta-4 → 0.1.0-beta-5
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.
|
@@ -252,7 +252,7 @@ class PlaywrightPulseReporter {
|
|
|
252
252
|
async onTestEnd(test, result) {
|
|
253
253
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
254
254
|
const project = (_a = test.parent) === null || _a === void 0 ? void 0 : _a.project();
|
|
255
|
-
const
|
|
255
|
+
const browserDisplayInfo = this.getBrowserInfo(test);
|
|
256
256
|
const testStatus = convertStatus(result.status, test);
|
|
257
257
|
const startTime = new Date(result.startTime);
|
|
258
258
|
const endTime = new Date(startTime.getTime() + result.duration);
|
|
@@ -264,7 +264,7 @@ class PlaywrightPulseReporter {
|
|
|
264
264
|
const processAllSteps = async (steps) => {
|
|
265
265
|
let processed = [];
|
|
266
266
|
for (const step of steps) {
|
|
267
|
-
const processedStep = await this.processStep(step, testIdForFiles,
|
|
267
|
+
const processedStep = await this.processStep(step, testIdForFiles, browserDisplayInfo, test);
|
|
268
268
|
processed.push(processedStep);
|
|
269
269
|
if (step.steps && step.steps.length > 0) {
|
|
270
270
|
processedStep.steps = await processAllSteps(step.steps);
|
|
@@ -304,7 +304,7 @@ class PlaywrightPulseReporter {
|
|
|
304
304
|
duration: result.duration,
|
|
305
305
|
startTime: startTime,
|
|
306
306
|
endTime: endTime,
|
|
307
|
-
browser:
|
|
307
|
+
browser: browserDisplayInfo,
|
|
308
308
|
retries: result.retry,
|
|
309
309
|
steps: ((_f = result.steps) === null || _f === void 0 ? void 0 : _f.length) ? await processAllSteps(result.steps) : [],
|
|
310
310
|
errorMessage: (_g = result.error) === null || _g === void 0 ? void 0 : _g.message,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arghajit/dummy",
|
|
3
3
|
"author": "Arghajit Singha",
|
|
4
|
-
"version": "0.1.0-beta-
|
|
4
|
+
"version": "0.1.0-beta-5",
|
|
5
5
|
"description": "A Playwright reporter and dashboard for visualizing test results.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"playwright",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/node": "^20",
|
|
65
|
+
"@types/ua-parser-js": "^0.7.39",
|
|
65
66
|
"eslint": "9.25.1",
|
|
66
67
|
"typescript": "^5"
|
|
67
68
|
},
|