You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Plain text attachments show "\n" instead of actual newlines. Example:
To Reproduce
report.json to reproduce the above image:
[
{
"keyword": "Feature",
"name": "Demo Report.json for Bug",
"line": 1,
"id": "demo-report.json-for-bug",
"tags": [],
"uri": "features/myTest.feature",
"elements": [
{
"id": "demo-report.json-for-bug;we-show-the-bug",
"keyword": "Scenario",
"line": 2,
"name": "We show the bug",
"type": "scenario",
"steps": [{
"keyword": "Given ",
"line": 1,
"name": "we make an attachment with newlines",
"match": {
"location": "features/steps/myTest.js:1"
},
"result": {
"status": "passed"
},
"embeddings": [
{
"data": "Some text with newlines\nThe second line\nThe third line",
"mime_type": "text/plain"
}
]
}]
}
]
}
]
Expected behavior
I would expect actual newlines instead of \n - I'm using these attachments to debug steps that interact with files, so having all the file contents on a single line with \n makes it difficult to view them correctly.
Here's how I would expect it to look:
EDIT: Looking at the code that produces it, it seems this text box is just the result of a JSON.stringify(...) call on the embeddings array. Can we rework this so we show the actual text content instead of JSON data?
The text was updated successfully, but these errors were encountered:
Environment (please complete the following information):
Config of multiple-cucumber-html-reporter
Describe the bug
Plain text attachments show "\n" instead of actual newlines. Example:
To Reproduce
report.json to reproduce the above image:
Expected behavior
I would expect actual newlines instead of \n - I'm using these attachments to debug steps that interact with files, so having all the file contents on a single line with \n makes it difficult to view them correctly.
Here's how I would expect it to look:
EDIT: Looking at the code that produces it, it seems this text box is just the result of a JSON.stringify(...) call on the
embeddings
array. Can we rework this so we show the actual text content instead of JSON data?The text was updated successfully, but these errors were encountered: