webdriverio-community/wdio-html-reporter

Default Template does not render errors

Closed this issue · 3 comments

Hi,

I have an issue with version "7.7.11" of "wdio-html-nice-reporter" in combination with wdio version "7.7.4":

If a test suite fails the generated html report renders an empty "Assertion" text. The root cause is that it uses event.message as source but the actual content is in event.value.message. Same is true for the stack: The error stack is in event.value.stack.

https://github.com/rpii/wdio-html-reporter/blob/88fe43943824b4702a93a30e24492fd9c1d4ec3d/templates/wdio-html-reporter-template.hbs#L348

Can you please have a look at that?

Regards,
Tobias

rpii commented
rpii commented

Thanks very much for this fast fix Rich. I can confirm that the errors are now getting rendered correctly with version 7.7.12 of wdio-html-nice-reporter