_stringifyMetaStep crashes
- Lingua principale
- JavaScript
- Stelle
- 84
- Fork
- 30
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.