cucumber-js
cucumber-js copied to clipboard
HTML formatter with external attachments does not show plain text when opened from local filesystem
👓 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:
✅ 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