From 0de0783a4d0b177dd63a5e9864b5523a17cd1932 Mon Sep 17 00:00:00 2001 From: KobeNguyenT <7845001+kobenguyent@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:47:11 +0100 Subject: [PATCH] fix: joi args in step (#4084) --- lib/command/workers/runTests.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/command/workers/runTests.js b/lib/command/workers/runTests.js index d444b183f..a2ea9e409 100644 --- a/lib/command/workers/runTests.js +++ b/lib/command/workers/runTests.js @@ -141,11 +141,19 @@ function initializeListeners() { const _steps = []; for (step of steps) { + const _args = []; + + if (step.args) { + for (const arg of step.args) { + arg && arg.$_root ? _args.push(JSON.stringify(arg).slice(0, 300)) : _args.push(arg); + } + } + _steps.push({ actor: step.actor, name: step.name, status: step.status, - args: step.args, + agrs: _args, startedAt: step.startedAt, startTime: step.startTime, endTime: step.endTime,