QualityOps / wdio-timeline-reporter

34 stars 19 forks source link

Customizing the timeline report filename is not working #57

Open rcrtwork opened 2 years ago

rcrtwork commented 2 years ago

Hi All, I have tried using the beautiful wdio timeline-reporter and it is working great. But when i tried to customize the report filename according to my need, it is not working instead it is naming the file as "timeline-report.html".

Details: Node version : 16.13.0

package.json dependencies": { "@rpii/wdio-html-reporter-pdf": "^7.0.1", "@rpii/wdio-report-events": "^0.1.4", "@wdio/cli": "^7.16.10", "wdio-html-nice-reporter": "^7.8.7", "wdio-timeline-reporter": "^5.1.4" }, "devDependencies": { "@babel/cli": "^7.16.0", "@babel/core": "^7.16.0", "@babel/preset-env": "^7.16.4", "@babel/register": "^7.16.0", "@wdio/jasmine-framework": "^7.16.6", "@wdio/local-runner": "^7.16.10", "@wdio/mocha-framework": "^7.16.6", "@wdio/spec-reporter": "^7.16.9", "chromedriver": "^95.0.0", "eslint": "^8.4.0", "eslint-plugin-wdio": "^7.4.2", "faker": "^5.5.3", "jasmine-data-provider": "^2.2.0", "wdio-chromedriver-service": "^7.2.2" } }

wdio.conf.js

import { TimelineService } from 'wdio-timeline-reporter/timeline-service';

services: [ ['chromedriver'], [TimelineService] ],

reporters: ['spec', ['timeline', { outputDir: './reports/', filename: 'client-portal.html', embedImages: true, images: { quality: 80, resize: false, reductionRatio: 2 }, screenshotStrategy: 'error' }]],

Can you please look into the issue?

OlllllllO commented 2 years ago

try changing filenamefileName