+
+
+ {{ testResults.description }}
+
+
+
+
+ {{ result.status === "pass" ? "check" : "close" }}
+
+
+ {{ result.message }}
+
+
+ {{
+ ` \xA0 — \xA0test ${
+ result.status === "pass" ? $t("passed") : $t("failed")
+ }`
+ }}
+
+
+
+
+
+
+
diff --git a/helpers/RequestRunner.ts b/helpers/RequestRunner.ts
index c87c63225..1b7019fb6 100644
--- a/helpers/RequestRunner.ts
+++ b/helpers/RequestRunner.ts
@@ -45,6 +45,7 @@ export function runRESTRequest$(): Observable
{
}
| {
result: "PASS"
+ message: string
styles: { icon: "check"; class: "success-response" }
}
| { startBlock: string; styles: { icon: ""; class: "" } }
@@ -98,7 +99,11 @@ function translateToNewTestResults(testReport: {
message: string
styles: { icon: "close"; class: "cl-error-response" }
}
- | { result: "PASS"; styles: { icon: "check"; class: "success-response" } }
+ | {
+ result: "PASS"
+ message: string
+ styles: { icon: "check"; class: "success-response" }
+ }
| { startBlock: string; styles: { icon: ""; class: "" } }
| { endBlock: true; styles: { icon: ""; class: "" } }
>
@@ -129,6 +134,7 @@ function translateToNewTestResults(testReport: {
// A normal PASS expectation
testsStack[testsStack.length - 1].expectResults.push({
status: "pass",
+ message: result.message,
})
} else if (isTestFail(result)) {
// A normal FAIL expectation
diff --git a/helpers/types/HoppTestResult.ts b/helpers/types/HoppTestResult.ts
index 158f79f0a..45f3bf82b 100644
--- a/helpers/types/HoppTestResult.ts
+++ b/helpers/types/HoppTestResult.ts
@@ -1,6 +1,7 @@
-export type HoppTestExpectResult =
- | { status: "pass" }
- | { status: "fail" | "error"; message: string }
+export type HoppTestExpectResult = {
+ status: "fail" | "pass" | "error"
+ message: string
+}
export type HoppTestData = {
description: string