_stringifyMetaStep crashes
- Ngôn ngữ chính
- JavaScript
- Star
- 84
- Fork
- 30
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại node_modules/@codeceptjs/ui/lib/codeceptjs/realtime-reporter.helper.js:204 và kiểm tra RealtimeReporterHelper._stringifyMetaStep, sau đó tái hiện luồng đăng nhập của auth plugin với @codeceptjs/ui 1.3.8 và codeceptjs 3.7.6. Hoàn tất khi codecept-ui không còn ném ngoại lệ khi metaStep.actor là null trong lúc _generateSection.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- testing-qa
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 55/100