CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Order of execution - Having multiple event.all.after

Open myrepojuly1987 opened this issue 3 years ago • 0 comments

What are you trying to achieve?

I have my own custom event.all.after which does a task specific to my project. However, I also have the same event.all.after executed by the plugin codeceptjs-cucumber-json-reporter. I would like to execute the event.all.after used by the plugin first followed by my own custom event.all.after. Is there a way to control the execution order for these events?

What do you get instead?

Customised event.all.after gets executed followed by the after all event used by the codeceptjs-cucumber-json-reporter plugin. I would like to execute the event.all.after used by the plugin first followed by my own custom event.all.after.

Details

  • CodeceptJS version: v3.3.4
  • NodeJS Version: 8.11.0
  • Operating System: MAC OS
  • puppeteer || webdriverio || testcafe version (if related) - All the test libraries

myrepojuly1987 avatar Aug 15 '22 13:08 myrepojuly1987