Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON attachments are not displayed correctly after upgrade to 3.6.1 (Cucumber 10+) due to broken decoding #316

Closed
HannaTarasevich opened this issue Jan 31, 2024 · 0 comments · Fixed by #317

Comments

@HannaTarasevich
Copy link
Contributor

HannaTarasevich commented Jan 31, 2024

Environment (please complete the following information):

  • multiple-cucumber-html-reporter: 3.6.1
  • Node.js version: 20.9.0
  • NPM version: 10.2.5
  • Platform name and version: Windows 10
  • Cucumber version: 10.3.1

Config of multiple-cucumber-html-reporter

    if(fs.existsSync('./reports/json-output-folder')){
        // Generate the report when it all tests are done
        generate({
            // Required
            // This part needs to be the same path where you store the JSON files
            // default = '.tmp/json/'
            jsonDir: './reports/json-output-folder',
            reportPath: './reports/report',
            displayDuration: true,
            openReportInBrowser: false,
            durationInMS: false
            // for more options see https://github.com/wswebcreation/multiple-cucumber-html-reporter#options
        });
    }

Describe the bug
When JSON object is encoded to base64 in json, the reporter does not decode it properly. The data is displayed in as buffer type.
image

To Reproduce
Steps to reproduce the behavior:
https://github.com/HannaTarasevich/multiple-reporter-issue

  1. npm install
  2. npm run wdio
  3. open generated report (reports > report > index.html) and open any test > show info

Expected behavior
Data is decoded to a valid JSON object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant