CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

BDD step doesn't log to console until its calling method uses inject() object

Open VivekLande opened this issue 3 years ago • 0 comments

What are you trying to achieve?

I am implementing a custom BDD step which calls a method and expecting that step should get executed and should log step to the console as well as to the report image

What do you get instead?

1] step getting executed and its method also gets called but that BDD step doesn't log to console nor to the report image

2] When I used to inject() objects into the calling method then this BDD step gets logged. image

Details

  • CodeceptJS version: 3,3.4
  • NodeJS Version: 16+
  • Operating System: Windows
  • puppeteer || webdriverio || testcafe version (if related) Playwright
  • Configuration file:
# paste config here

VivekLande avatar Jul 20 '22 10:07 VivekLande