Skip to content

Commit

Permalink
fix: typo and masked sensitive info (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Dec 17, 2023
1 parent d8b4043 commit 42ba506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42ba506

Please sign in to comment.