allure-playwright 3.3.3 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
3
2
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
4
3
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
5
4
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
@@ -364,9 +363,9 @@ export var AllureReporter = /*#__PURE__*/function () {
364
363
  _this$beforeHooksAtta,
365
364
  _this$afterHooksAttac,
366
365
  _this$attachmentSteps2;
367
- var testUuid, threadId, thread, error, _test$parent$titlePat, _test$parent$titlePat2, projectSuiteTitle, fileSuiteTitle, suiteTitles, beforeHooksStack, afterHooksStack, attachmentsInBeforeHooks, attachmentsInAfterHooks, hookAttachmentUuids, hookAttachmentNames, attachmentSteps, attachmentsInSteps, onlyHooksAttachments, i, attachment, attachmentStep, _iterator2, _step2, _loop, _t;
368
- return _regenerator().w(function (_context2) {
369
- while (1) switch (_context2.n) {
366
+ var testUuid, threadId, thread, error, _test$parent$titlePat, _test$parent$titlePat2, projectSuiteTitle, fileSuiteTitle, suiteTitles, beforeHooksStack, afterHooksStack, attachmentsInBeforeHooks, attachmentsInAfterHooks, hookAttachmentCounts, _i, _arr, hookStep, name, attachmentSteps, onlyHooksAttachments, attachmentsInSteps, attachmentCounts, _iterator2, _step2, _attachment2, hookCount, currentCount, i, attachment, attachmentStep, beforeHookIndex, afterHookIndex, _i2, _onlyHooksAttachments, _attachment, matchingBeforeHookStep, matchingAfterHookStep, targetStack, _hookStep, _hookStep2, _targetStack, _hookStep3, stepResult, fileName;
367
+ return _regenerator().w(function (_context) {
368
+ while (1) switch (_context.n) {
370
369
  case 0:
371
370
  testUuid = this.allureResultsUuids.get(test.id); // We need to check parallelIndex first because pw introduced this field only in v1.30.0
372
371
  threadId = result.parallelIndex !== undefined ? result.parallelIndex : result.workerIndex;
@@ -414,32 +413,49 @@ export var AllureReporter = /*#__PURE__*/function () {
414
413
  });
415
414
  attachmentsInBeforeHooks = (_this$beforeHooksAtta = this.beforeHooksAttachmentsStack.get(test.id)) !== null && _this$beforeHooksAtta !== void 0 ? _this$beforeHooksAtta : [];
416
415
  attachmentsInAfterHooks = (_this$afterHooksAttac = this.afterHooksAttachmentsStack.get(test.id)) !== null && _this$afterHooksAttac !== void 0 ? _this$afterHooksAttac : [];
417
- hookAttachmentUuids = new Set([].concat(_toConsumableArray(attachmentsInBeforeHooks), _toConsumableArray(attachmentsInAfterHooks)).map(function (hookStep) {
418
- return normalizeHookTitle(hookStep.title);
419
- }).filter(Boolean));
420
- hookAttachmentNames = new Set([].concat(_toConsumableArray(attachmentsInBeforeHooks), _toConsumableArray(attachmentsInAfterHooks)).map(function (hookStep) {
421
- return normalizeHookTitle(hookStep.title);
422
- }).filter(Boolean));
416
+ hookAttachmentCounts = new Map();
417
+ for (_i = 0, _arr = [].concat(_toConsumableArray(attachmentsInBeforeHooks), _toConsumableArray(attachmentsInAfterHooks)); _i < _arr.length; _i++) {
418
+ hookStep = _arr[_i];
419
+ name = normalizeHookTitle(hookStep.title);
420
+ if (name) {
421
+ hookAttachmentCounts.set(name, (hookAttachmentCounts.get(name) || 0) + 1);
422
+ }
423
+ }
423
424
  attachmentSteps = (_this$attachmentSteps2 = this.attachmentSteps.get(testUuid)) !== null && _this$attachmentSteps2 !== void 0 ? _this$attachmentSteps2 : [];
424
- attachmentsInSteps = result.attachments.filter(function (attachment) {
425
- return !hookAttachmentUuids.has(attachment.name);
426
- });
427
- onlyHooksAttachments = result.attachments.filter(function (att) {
428
- return hookAttachmentNames.has(att.name);
429
- });
425
+ onlyHooksAttachments = [];
426
+ attachmentsInSteps = [];
427
+ attachmentCounts = new Map();
428
+ _iterator2 = _createForOfIteratorHelper(result.attachments);
429
+ try {
430
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
431
+ _attachment2 = _step2.value;
432
+ hookCount = hookAttachmentCounts.get(_attachment2.name) || 0;
433
+ currentCount = attachmentCounts.get(_attachment2.name) || 0;
434
+ if (currentCount < hookCount) {
435
+ onlyHooksAttachments.push(_attachment2);
436
+ } else {
437
+ attachmentsInSteps.push(_attachment2);
438
+ }
439
+ attachmentCounts.set(_attachment2.name, currentCount + 1);
440
+ }
441
+ } catch (err) {
442
+ _iterator2.e(err);
443
+ } finally {
444
+ _iterator2.f();
445
+ }
430
446
  i = 0;
431
447
  case 1:
432
448
  if (!(i < attachmentsInSteps.length)) {
433
- _context2.n = 3;
449
+ _context.n = 3;
434
450
  break;
435
451
  }
436
452
  attachment = attachmentsInSteps[i];
437
453
  attachmentStep = attachmentSteps.length > i ? attachmentSteps[i] : undefined;
438
- _context2.n = 2;
454
+ _context.n = 2;
439
455
  return this.processAttachment(testUuid, attachmentStep, attachment);
440
456
  case 2:
441
457
  i++;
442
- _context2.n = 1;
458
+ _context.n = 1;
443
459
  break;
444
460
  case 3:
445
461
  if (result.stdout.length > 0) {
@@ -455,75 +471,55 @@ export var AllureReporter = /*#__PURE__*/function () {
455
471
 
456
472
  // FIXME: temp logic for labels override, we need it here to keep the reporter compatible with v2 API
457
473
  // in next iterations we need to implement the logic for every javascript integration
458
- _iterator2 = _createForOfIteratorHelper(onlyHooksAttachments);
459
- _context2.p = 4;
460
- _loop = /*#__PURE__*/_regenerator().m(function _loop() {
461
- var attachment, matchingBeforeHookStep, matchingAfterHookStep, targetStack, hookStep, stepResult, fileName;
462
- return _regenerator().w(function (_context) {
463
- while (1) switch (_context.n) {
464
- case 0:
465
- attachment = _step2.value;
466
- matchingBeforeHookStep = attachmentsInBeforeHooks.find(function (step) {
467
- return normalizeHookTitle(step.title) === attachment.name;
468
- });
469
- matchingAfterHookStep = attachmentsInAfterHooks.find(function (step) {
470
- return normalizeHookTitle(step.title) === attachment.name;
471
- });
472
- targetStack = matchingBeforeHookStep ? beforeHooksStack : afterHooksStack;
473
- hookStep = matchingBeforeHookStep || matchingAfterHookStep;
474
- if (!(attachment.contentType === ALLURE_RUNTIME_MESSAGE_CONTENT_TYPE)) {
475
- _context.n = 2;
476
- break;
477
- }
478
- _context.n = 1;
479
- return _this.processAttachment(testUuid, hookStep === null || hookStep === void 0 ? void 0 : hookStep.uuid, attachment);
480
- case 1:
481
- return _context.a(2, 1);
482
- case 2:
483
- if (targetStack && hookStep) {
484
- stepResult = targetStack === null || targetStack === void 0 ? void 0 : targetStack.findStepByUuid(hookStep === null || hookStep === void 0 ? void 0 : hookStep.uuid);
485
- if (stepResult) {
486
- fileName = targetStack.addAttachment(attachment, _this.allureRuntime.writer);
487
- stepResult.attachments.push({
488
- name: attachment.name,
489
- type: attachment.contentType,
490
- source: fileName
491
- });
492
- }
493
- }
494
- case 3:
495
- return _context.a(2);
496
- }
497
- }, _loop);
498
- });
499
- _iterator2.s();
500
- case 5:
501
- if ((_step2 = _iterator2.n()).done) {
502
- _context2.n = 8;
474
+ beforeHookIndex = 0;
475
+ afterHookIndex = 0;
476
+ _i2 = 0, _onlyHooksAttachments = onlyHooksAttachments;
477
+ case 4:
478
+ if (!(_i2 < _onlyHooksAttachments.length)) {
479
+ _context.n = 8;
503
480
  break;
504
481
  }
505
- return _context2.d(_regeneratorValues(_loop()), 6);
506
- case 6:
507
- if (!_context2.v) {
508
- _context2.n = 7;
482
+ _attachment = _onlyHooksAttachments[_i2];
483
+ matchingBeforeHookStep = null;
484
+ matchingAfterHookStep = null;
485
+ targetStack = null;
486
+ _hookStep = null;
487
+ if (beforeHookIndex < attachmentsInBeforeHooks.length) {
488
+ matchingBeforeHookStep = attachmentsInBeforeHooks[beforeHookIndex];
489
+ targetStack = beforeHooksStack;
490
+ _hookStep = matchingBeforeHookStep;
491
+ beforeHookIndex++;
492
+ } else if (afterHookIndex < attachmentsInAfterHooks.length) {
493
+ matchingAfterHookStep = attachmentsInAfterHooks[afterHookIndex];
494
+ targetStack = afterHooksStack;
495
+ _hookStep = matchingAfterHookStep;
496
+ afterHookIndex++;
497
+ }
498
+ if (!(_attachment.contentType === ALLURE_RUNTIME_MESSAGE_CONTENT_TYPE)) {
499
+ _context.n = 6;
509
500
  break;
510
501
  }
511
- return _context2.a(3, 7);
502
+ _context.n = 5;
503
+ return this.processAttachment(testUuid, (_hookStep2 = _hookStep) === null || _hookStep2 === void 0 ? void 0 : _hookStep2.uuid, _attachment);
504
+ case 5:
505
+ return _context.a(3, 7);
506
+ case 6:
507
+ if (targetStack && _hookStep) {
508
+ stepResult = (_targetStack = targetStack) === null || _targetStack === void 0 ? void 0 : _targetStack.findStepByUuid((_hookStep3 = _hookStep) === null || _hookStep3 === void 0 ? void 0 : _hookStep3.uuid);
509
+ if (stepResult) {
510
+ fileName = targetStack.addAttachment(_attachment, this.allureRuntime.writer);
511
+ stepResult.attachments.push({
512
+ name: _attachment.name,
513
+ type: _attachment.contentType,
514
+ source: fileName
515
+ });
516
+ }
517
+ }
512
518
  case 7:
513
- _context2.n = 5;
519
+ _i2++;
520
+ _context.n = 4;
514
521
  break;
515
522
  case 8:
516
- _context2.n = 10;
517
- break;
518
- case 9:
519
- _context2.p = 9;
520
- _t = _context2.v;
521
- _iterator2.e(_t);
522
- case 10:
523
- _context2.p = 10;
524
- _iterator2.f();
525
- return _context2.f(10);
526
- case 11:
527
523
  this.allureRuntime.updateTest(testUuid, function (testResult) {
528
524
  var mappedLabels = testResult.labels.reduce(function (acc, label) {
529
525
  if (!acc[label.name]) {
@@ -555,10 +551,10 @@ export var AllureReporter = /*#__PURE__*/function () {
555
551
  duration: result.duration
556
552
  });
557
553
  this.allureRuntime.writeTest(testUuid);
558
- case 12:
559
- return _context2.a(2);
554
+ case 9:
555
+ return _context.a(2);
560
556
  }
561
- }, _callee, this, [[4, 9, 10, 11]]);
557
+ }, _callee, this);
562
558
  }));
563
559
  function onTestEnd(_x, _x2) {
564
560
  return _onTestEnd.apply(this, arguments);
@@ -570,9 +566,9 @@ export var AllureReporter = /*#__PURE__*/function () {
570
566
  value: function () {
571
567
  var _addSkippedResults = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
572
568
  var _this2 = this;
573
- var unprocessedCases, _iterator3, _step3, testCase, _t2;
574
- return _regenerator().w(function (_context3) {
575
- while (1) switch (_context3.n) {
569
+ var unprocessedCases, _iterator3, _step3, testCase, _t;
570
+ return _regenerator().w(function (_context2) {
571
+ while (1) switch (_context2.n) {
576
572
  case 0:
577
573
  unprocessedCases = this.suite.allTests().filter(function (_ref4) {
578
574
  var title = _ref4.title;
@@ -580,16 +576,16 @@ export var AllureReporter = /*#__PURE__*/function () {
580
576
  return !_this2.startedTestCasesTitlesCache.includes(titleMetadata.cleanTitle);
581
577
  });
582
578
  _iterator3 = _createForOfIteratorHelper(unprocessedCases);
583
- _context3.p = 1;
579
+ _context2.p = 1;
584
580
  _iterator3.s();
585
581
  case 2:
586
582
  if ((_step3 = _iterator3.n()).done) {
587
- _context3.n = 4;
583
+ _context2.n = 4;
588
584
  break;
589
585
  }
590
586
  testCase = _step3.value;
591
587
  this.onTestBegin(testCase);
592
- _context3.n = 3;
588
+ _context2.n = 3;
593
589
  return this.onTestEnd(testCase, {
594
590
  status: Status.SKIPPED,
595
591
  attachments: [],
@@ -605,21 +601,21 @@ export var AllureReporter = /*#__PURE__*/function () {
605
601
  annotations: []
606
602
  });
607
603
  case 3:
608
- _context3.n = 2;
604
+ _context2.n = 2;
609
605
  break;
610
606
  case 4:
611
- _context3.n = 6;
607
+ _context2.n = 6;
612
608
  break;
613
609
  case 5:
614
- _context3.p = 5;
615
- _t2 = _context3.v;
616
- _iterator3.e(_t2);
610
+ _context2.p = 5;
611
+ _t = _context2.v;
612
+ _iterator3.e(_t);
617
613
  case 6:
618
- _context3.p = 6;
614
+ _context2.p = 6;
619
615
  _iterator3.f();
620
- return _context3.f(6);
616
+ return _context2.f(6);
621
617
  case 7:
622
- return _context3.a(2);
618
+ return _context2.a(2);
623
619
  }
624
620
  }, _callee2, this, [[1, 5, 6, 7]]);
625
621
  }));
@@ -632,16 +628,16 @@ export var AllureReporter = /*#__PURE__*/function () {
632
628
  key: "onEnd",
633
629
  value: function () {
634
630
  var _onEnd = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
635
- return _regenerator().w(function (_context4) {
636
- while (1) switch (_context4.n) {
631
+ return _regenerator().w(function (_context3) {
632
+ while (1) switch (_context3.n) {
637
633
  case 0:
638
- _context4.n = 1;
634
+ _context3.n = 1;
639
635
  return this.addSkippedResults();
640
636
  case 1:
641
637
  this.allureRuntime.writeEnvironmentInfo();
642
638
  this.allureRuntime.writeCategoriesDefinitions();
643
639
  case 2:
644
- return _context4.a(2);
640
+ return _context3.a(2);
645
641
  }
646
642
  }, _callee3, this);
647
643
  }));
@@ -675,36 +671,36 @@ export var AllureReporter = /*#__PURE__*/function () {
675
671
  value: function () {
676
672
  var _processAttachment = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(testUuid, attachmentStepUuid, attachment) {
677
673
  var allureRuntimeMessage, message, parentUuid, contentType, pathWithoutEnd, actualBase64, expectedBase64, diffBase64, diffName;
678
- return _regenerator().w(function (_context5) {
679
- while (1) switch (_context5.n) {
674
+ return _regenerator().w(function (_context4) {
675
+ while (1) switch (_context4.n) {
680
676
  case 0:
681
677
  if (!(!attachment.body && !attachment.path)) {
682
- _context5.n = 1;
678
+ _context4.n = 1;
683
679
  break;
684
680
  }
685
- return _context5.a(2);
681
+ return _context4.a(2);
686
682
  case 1:
687
683
  allureRuntimeMessage = attachment.contentType === ALLURE_RUNTIME_MESSAGE_CONTENT_TYPE;
688
684
  if (!(allureRuntimeMessage && !attachment.body)) {
689
- _context5.n = 2;
685
+ _context4.n = 2;
690
686
  break;
691
687
  }
692
- return _context5.a(2);
688
+ return _context4.a(2);
693
689
  case 2:
694
690
  if (!allureRuntimeMessage) {
695
- _context5.n = 4;
691
+ _context4.n = 4;
696
692
  break;
697
693
  }
698
694
  message = JSON.parse(attachment.body.toString());
699
695
  if (!(message.type === "step_metadata")) {
700
- _context5.n = 3;
696
+ _context4.n = 3;
701
697
  break;
702
698
  }
703
699
  this.processStepMetadataMessage(attachmentStepUuid, message);
704
- return _context5.a(2);
700
+ return _context4.a(2);
705
701
  case 3:
706
702
  this.allureRuntime.applyRuntimeMessages(testUuid, [message]);
707
- return _context5.a(2);
703
+ return _context4.a(2);
708
704
  case 4:
709
705
  parentUuid = this.allureRuntime.startStep(testUuid, attachmentStepUuid, {
710
706
  name: attachment.name
@@ -715,20 +711,20 @@ export var AllureReporter = /*#__PURE__*/function () {
715
711
  this.allureRuntime.stopStep(parentUuid, undefined);
716
712
  }
717
713
  if (!attachment.body) {
718
- _context5.n = 5;
714
+ _context4.n = 5;
719
715
  break;
720
716
  }
721
717
  this.allureRuntime.writeAttachment(testUuid, parentUuid, attachment.name, attachment.body, {
722
718
  contentType: attachment.contentType
723
719
  });
724
- _context5.n = 7;
720
+ _context4.n = 7;
725
721
  break;
726
722
  case 5:
727
723
  if (existsSync(attachment.path)) {
728
- _context5.n = 6;
724
+ _context4.n = 6;
729
725
  break;
730
726
  }
731
- return _context5.a(2);
727
+ return _context4.a(2);
732
728
  case 6:
733
729
  contentType = attachment.name === "trace" && attachment.contentType === "application/zip" ? "application/vnd.allure.playwright-trace" : attachment.contentType;
734
730
  this.allureRuntime.writeAttachment(testUuid, parentUuid, attachment.name, attachment.path, {
@@ -736,30 +732,30 @@ export var AllureReporter = /*#__PURE__*/function () {
736
732
  });
737
733
  case 7:
738
734
  if (attachment.name.match(diffEndRegexp)) {
739
- _context5.n = 8;
735
+ _context4.n = 8;
740
736
  break;
741
737
  }
742
- return _context5.a(2);
738
+ return _context4.a(2);
743
739
  case 8:
744
740
  pathWithoutEnd = attachment.path.replace(diffEndRegexp, "");
745
741
  if (!this.processedDiffs.includes(pathWithoutEnd)) {
746
- _context5.n = 9;
742
+ _context4.n = 9;
747
743
  break;
748
744
  }
749
- return _context5.a(2);
745
+ return _context4.a(2);
750
746
  case 9:
751
- _context5.n = 10;
747
+ _context4.n = 10;
752
748
  return readImageAsBase64("".concat(pathWithoutEnd, "-actual.png"));
753
749
  case 10:
754
- actualBase64 = _context5.v;
755
- _context5.n = 11;
750
+ actualBase64 = _context4.v;
751
+ _context4.n = 11;
756
752
  return readImageAsBase64("".concat(pathWithoutEnd, "-expected.png"));
757
753
  case 11:
758
- expectedBase64 = _context5.v;
759
- _context5.n = 12;
754
+ expectedBase64 = _context4.v;
755
+ _context4.n = 12;
760
756
  return readImageAsBase64("".concat(pathWithoutEnd, "-diff.png"));
761
757
  case 12:
762
- diffBase64 = _context5.v;
758
+ diffBase64 = _context4.v;
763
759
  diffName = attachment.name.replace(diffEndRegexp, "");
764
760
  this.allureRuntime.writeAttachment(testUuid, undefined, diffName, Buffer.from(JSON.stringify({
765
761
  expected: expectedBase64,
@@ -772,7 +768,7 @@ export var AllureReporter = /*#__PURE__*/function () {
772
768
  });
773
769
  this.processedDiffs.push(pathWithoutEnd);
774
770
  case 13:
775
- return _context5.a(2);
771
+ return _context4.a(2);
776
772
  }
777
773
  }, _callee4, this);
778
774
  }));