@uuv/playwright 1.8.0 → 1.8.2
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.
|
@@ -148,7 +148,6 @@ class UuvPlaywrightReporterHelper {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
this.envelopes.push(newTestStepSkippedEnvelope);
|
|
151
|
-
this.consoleReportMap.get(featureFile)?.increment("skipped");
|
|
152
151
|
});
|
|
153
152
|
}
|
|
154
153
|
}
|
|
@@ -477,11 +476,27 @@ class UuvPlaywrightReporterHelper {
|
|
|
477
476
|
console.info(` ${this.getResultIcon(testCase)} ${this.getTestCaseTitle(testCase, result)}`);
|
|
478
477
|
}
|
|
479
478
|
getResultIcon(testCase) {
|
|
480
|
-
|
|
479
|
+
if (testCase.expectedStatus === "skipped") {
|
|
480
|
+
return chalk_1.default.yellowBright("\u2192");
|
|
481
|
+
}
|
|
482
|
+
else if (testCase.ok()) {
|
|
483
|
+
return chalk_1.default.green("\u2713");
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
return chalk_1.default.redBright("\u166D");
|
|
487
|
+
}
|
|
481
488
|
}
|
|
482
489
|
getTestCaseTitle(testCase, result) {
|
|
483
490
|
const message = `${testCase.title} (${result.duration}ms)`;
|
|
484
|
-
|
|
491
|
+
if (testCase.expectedStatus === "skipped") {
|
|
492
|
+
return chalk_1.default.yellowBright(message);
|
|
493
|
+
}
|
|
494
|
+
else if (testCase.ok()) {
|
|
495
|
+
return chalk_1.default.gray(message);
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
return chalk_1.default.redBright(message);
|
|
499
|
+
}
|
|
485
500
|
}
|
|
486
501
|
logTeamCity(line) {
|
|
487
502
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/playwright",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
|
|
6
6
|
"description": "A solution to run E2E tests written in cucumber(BDD) with playwright.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@cucumber/cucumber": "9.3.0",
|
|
48
48
|
"@playwright/test": "1.33.0",
|
|
49
|
-
"@uuv/runner-commons": "1.6.
|
|
49
|
+
"@uuv/runner-commons": "1.6.5",
|
|
50
50
|
"axe-core": "4.7.2",
|
|
51
51
|
"axe-playwright": "1.2.3",
|
|
52
52
|
"chalk": "4.1.2",
|