cucumber-js icon indicating copy to clipboard operation
cucumber-js copied to clipboard

HTML formatter with external attachments does not show plain text when opened from local filesystem

Open vitalets opened this issue 4 months ago • 0 comments

👓 What did you see?

I have the following step that attaches plain text:

Given('some step', async function () {
   this.attach('some text');
});

I run Cucumber with HTML formatter and external attachments enabled:

format: [
  ['html', 'cucumber-reports/report.html'],
],
formatOptions: {
  html: {
    externalAttachments: true
  }
}

When I open report.html from the local filesystem, I see the following error: image

✅ What did you expect to see?

I expect that some text would be displayed in the report.

📦 Which tool/library version are you using?

$ npx cucumber-js -v
11.0.1

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response

vitalets avatar Sep 26 '24 10:09 vitalets