From c502639b630eab75c53f6eecfa5ac7512bc1dc9d Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Sun, 17 Dec 2023 10:40:48 +0100 Subject: [PATCH] fix: typo and masked sensitive info --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 72ecff4..163b15d 100644 --- a/index.js +++ b/index.js @@ -197,7 +197,10 @@ module.exports = (config) => { for (test of testTempIdArr) { for (step of test.testSteps) { - const stepTitle = `[STEP] - ${step.actor} ${step.name} ${(step.args ? step.args.join(' ') : '')}`; + // typo would be fixed by https://github.com/codeceptjs/CodeceptJS/pull/4077 + const stepArgs = step.agrs ? step.agrs : step.args + const stepTitle = stepArgs ? `[STEP] - ${step.actor} ${step.name} ${JSON.stringify(stepArgs.map(item => item._secret ? '*****' : item).join(' '))}` : `[STEP] - ${step.actor} ${step.name}`; + const stepObj = await startTestItem(launchObj.tempId, stepTitle, rp_STEP, test.testTempId); stepObj.status = step.status || rp_PASSED; await finishStepItem(stepObj);