_stringifyMetaStep crashes
- Dominant language
- JavaScript
- Stars
- 84
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
When using the auth plugin with codecept-ui, tests fail with:
```
Cannot read properties of null (reading 'replace')
TypeError:
at RealtimeReporterHelper._stringifyMetaStep (node_modules/@codeceptjs/ui/lib/codeceptjs/realtime-reporter.helper.js:204:30)
at RealtimeReporterHelper._generateSection (node_modules/@codeceptjs/ui/lib/codeceptjs/realtime-reporter.helper.js:174:23)
```
Cause:
Line 204 in realtime-reporter.helper.js assumes metaStep.actor is always a string:
line = `${metaStep.actor.replace(/[\W_]+/g, '') || ''}-${metaStep.name.replace(/[\W_]+/g, '') || ''}...`
But when using the auth plugin's login function, metaStep.actor is null.
Versions:
- @codeceptjs/ui: 1.3.8
- codeceptjs: 3.7.6
Contributor guide
Assessment
This issue has not been assessed yet.