Skip to content

Commit

Permalink
fix: wrong event is called
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 27, 2024
1 parent 4febf75 commit 0f8bb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugin/stepByStepReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ module.exports = function (config) {
recorder.add('screenshot of failed test', async () => persistStep(step), true)
})

event.dispatcher.on(event.step.failed, (step) => {
recorder.add('screenshot of failed test', async () => persistStep(step), true)
event.dispatcher.on(event.step.after, (step) => {
recorder.add('screenshot of step of test', async () => persistStep(step), true)
})

event.dispatcher.on(event.test.passed, (test) => {
Expand Down

0 comments on commit 0f8bb83

Please sign in to comment.