qase-javascript-commons 2.6.4 → 2.6.6
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/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# qase-javascript-commons@2.6.6
|
|
2
|
+
|
|
3
|
+
## Bug fixes
|
|
4
|
+
|
|
5
|
+
- Fixed Playwright timeout tests being reported as `invalid` instead of `failed`. When Playwright reports a test with `timedOut` or `interrupted` status, the `determineTestStatus` function now returns `failed` directly, bypassing the error-message heuristic that previously misclassified timeout errors as non-assertion (infrastructure) failures. Other reporters (Cypress, Jest, Mocha, TestCafe) are unaffected because they do not use these runner-specific status values.
|
|
6
|
+
|
|
7
|
+
# qase-javascript-commons@2.6.5
|
|
8
|
+
|
|
9
|
+
## Bug fixes
|
|
10
|
+
|
|
11
|
+
- Fixed `TypeError: Cannot read properties of undefined (reading 'length')` when publishing test results. The `ResultTransformer` now safely handles missing `tags` property on test results created as plain object literals by framework reporters (jest, cypress, playwright, cucumberjs, newman, testcafe, wdio).
|
|
12
|
+
|
|
1
13
|
# qase-javascript-commons@2.6.3
|
|
2
14
|
|
|
3
15
|
## Internal refactoring
|
|
@@ -13,6 +13,13 @@ function determineTestStatus(error, originalStatus) {
|
|
|
13
13
|
if (!error) {
|
|
14
14
|
return mapOriginalStatus(originalStatus);
|
|
15
15
|
}
|
|
16
|
+
// When the test runner explicitly reports timeout or interruption,
|
|
17
|
+
// treat as failed regardless of error content.
|
|
18
|
+
// (e.g. Playwright's timedOut/interrupted statuses)
|
|
19
|
+
const normalizedStatus = originalStatus.toLowerCase();
|
|
20
|
+
if (normalizedStatus === 'timedout' || normalizedStatus === 'interrupted') {
|
|
21
|
+
return test_execution_1.TestStatusEnum.failed;
|
|
22
|
+
}
|
|
16
23
|
// Check if it's an assertion error
|
|
17
24
|
if (isAssertionError(error, originalStatus)) {
|
|
18
25
|
return test_execution_1.TestStatusEnum.failed;
|