codeceptjs / codeceptjs/CodeceptJS

Step object not updating status of metaStep on failure

Đang mở
#2,335 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
757
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Mô tả

#### What are you trying to achieve?
Using event listener to get metaStep status.

#### What do you get instead?
When a step fails the status is 'failed' for the step. However the metaStep status is always 'success'

> Provide console output if related. Use `--verbose` mode for more details.

Printout of step object on event.step.finished. Oddly enough it looks like event.step.started seems to be getting fired on finished as well, because you get endTime for it as well

```bash
name: 'see',
helperMethod: 'see',
status: 'failed',
suffix: '',
prefix: '',
comment: '',
args: [ 'Some Text' ],
metaStep: MetaStep {
actor: 'And',
helper: null,
name: '"Some Text" text is visible',
helperMethod: '"Some text" text is visible',
status: 'success',
suffix: '',
prefix: '',
comment: '',
args: [],
stack: ''
},
startTime: 1586780437455,
endTime: 1586780437459
```

### Details

* CodeceptJS version: 2.5.0
* NodeJS Version: 12.16.0
* Operating System:
* puppeteer

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.