webdriverio-community/wdio-html-reporter

Javascript Error in the template report.html

Closed this issue · 2 comments

Hi,
To Fix:
It seems to have an error at the end of the template file of the report.html.
I have this error in my broaser console:
Uncaught SyntaxError: Unexpected token ')'

```
if () {
        document.querySelectorAll('.suite-header').forEach(item => {
            item.click();
        });
    }
I think it must be 
      ```
  if (true) {
            document.querySelectorAll('.suite-header').forEach(item => {
                item.click();
            });
        }
rpii commented

Ok, I understand.
Thanks!
Nicolas