aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/assets/loading.js
diff options
context:
space:
mode:
Diffstat (limited to 'services/app/assets/loading.js')
-rw-r--r--services/app/assets/loading.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/app/assets/loading.js b/services/app/assets/loading.js
index 4c75692..49d8b48 100644
--- a/services/app/assets/loading.js
+++ b/services/app/assets/loading.js
@@ -11,6 +11,8 @@ document.addEventListener('DOMContentLoaded', () => {
);
const statusElemsMap = getElemsMap('js-testcase-execution-status');
const statusLoadingIndicatorElemsMap = getElemsMap('js-testcase-execution-status-loading-indicator');
+ const stdoutElemsMap = getElemsMap('js-testcase-execution-stdout');
+ const stderrElemsMap = getElemsMap('js-testcase-execution-stderr');
if (!aggregatedStatusLoadingIndicatorElem) {
return;
@@ -30,12 +32,16 @@ document.addEventListener('DOMContentLoaded', () => {
for (const ex of testcase_executions) {
const statusElem = statusElemsMap.get(ex.id);
const loadingIndicatorElem = statusLoadingIndicatorElemsMap.get(ex.id);
+ const stdoutElem = stdoutElemsMap.get(ex.id);
+ const stderrElem = stderrElemsMap.get(ex.id);
- const { status } = ex;
+ const { status, stdout, stderr } = ex;
if (status.label === statusElem.textContent) {
continue;
}
statusElem.textContent = status.label;
+ stdoutElem.textContent = stdout;
+ stderrElem.textContent = stderr;
if (loadingIndicatorElem && !status.show_loading_indicator) {
loadingIndicatorElem.remove();
}