We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c338c commit c1278c6Copy full SHA for c1278c6
lib/generate-report.js
@@ -406,7 +406,17 @@ function generateReport(options) {
406
scenario.steps.forEach((step) => {
407
if (step.embeddings !== undefined) {
408
step.attachments = [];
409
+
410
step.embeddings.forEach((embedding, embeddingIndex) => {
411
+ /* Decode Base64 for Text-ish attachements */
412
+ if(
413
+ embedding.mime_type === 'application/json' ||
414
+ embedding.mime_type === 'text/html' ||
415
+ embedding.mime_type === 'text/plain'
416
+ ) {
417
+ embedding.data = Buffer.from(embedding.data.toString(), 'base64')
418
+ }
419
420
/* istanbul ignore else */
421
if (
422
embedding.mime_type === 'application/json' ||
0 commit comments