qase-javascript-commons 2.2.12 → 2.2.14
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
package/dist/models/test-step.js
CHANGED
|
@@ -493,6 +493,12 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
493
493
|
resultStep.data.action = step.data.action;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
+
if ('expected_result' in step.data && resultStep.data != undefined && step.data.expected_result != null) {
|
|
497
|
+
resultStep.data.expected_result = step.data.expected_result;
|
|
498
|
+
}
|
|
499
|
+
if ('data' in step.data && resultStep.data != undefined && step.data.data != null) {
|
|
500
|
+
resultStep.data.input_data = step.data.data;
|
|
501
|
+
}
|
|
496
502
|
}
|
|
497
503
|
if (step.step_type === models_1.StepType.GHERKIN) {
|
|
498
504
|
if ('keyword' in step.data && resultStep.data != undefined) {
|
|
@@ -642,6 +648,10 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
642
648
|
if (error.response?.status === 404) {
|
|
643
649
|
return new qase_error_1.QaseError(message + ': Not found.');
|
|
644
650
|
}
|
|
651
|
+
if (error.response?.status === 403) {
|
|
652
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions
|
|
653
|
+
return new qase_error_1.QaseError(`${message}: ${error.response?.data?.errorMessage}`);
|
|
654
|
+
}
|
|
645
655
|
if (error.response?.status === 400 || error.response?.status === 422) {
|
|
646
656
|
return new qase_error_1.QaseError(message + ': Bad request. Body: \n ' + JSON.stringify(model));
|
|
647
657
|
}
|
package/dist/steps/step.js
CHANGED