-
Notifications
You must be signed in to change notification settings - Fork 29
Open
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
Metadata
Metadata
Assignees
Labels
No labels