testit-adapter-playwright 5.0.5 → 5.0.6-TMS-5.8
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 +8 -3
- package/package.json +2 -2
package/dist/reporter.js
CHANGED
|
@@ -146,11 +146,16 @@ class TmsReporter {
|
|
|
146
146
|
return false;
|
|
147
147
|
}
|
|
148
148
|
getDictionariesByTest(test) {
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
149
|
+
const file = test.location?.file;
|
|
150
|
+
if (!file) {
|
|
151
151
|
return [];
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
const rootDir = this.config?.rootDir;
|
|
154
|
+
const relative = rootDir ? path_1.default.relative(rootDir, file) : file;
|
|
155
|
+
if (!relative || relative.startsWith("..")) {
|
|
156
|
+
return path_1.default.basename(file) ? [path_1.default.basename(file)] : [];
|
|
157
|
+
}
|
|
158
|
+
return relative.split(/[/\\]/).filter(Boolean);
|
|
154
159
|
}
|
|
155
160
|
async getAutotestData(test, result) {
|
|
156
161
|
const autotestData = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-playwright",
|
|
3
|
-
"version": "5.0.5",
|
|
3
|
+
"version": "5.0.6-TMS-5.8",
|
|
4
4
|
"description": "Playwright adapter for Test IT",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prettier": "^3.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"testit-js-commons": "5.0.5"
|
|
43
|
+
"testit-js-commons": "5.0.6-TMS-5.8"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist"
|