@bigbinary/neeto-playwright-reporter 1.3.20 → 1.3.21

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/index.js CHANGED
@@ -18485,7 +18485,7 @@ const MESSAGES = {
18485
18485
  startingTest: (titlePath) => `Starting ${titlePath}`,
18486
18486
  },
18487
18487
  onTestEnd: {
18488
- reportedTest: (title) => `Reported ${title} to NeetoPlaydash`,
18488
+ reportedTest: ({ title, status, id }) => `Reported ${title} with id: ${id} to NeetoPlaydash with status ${status}`,
18489
18489
  },
18490
18490
  onEnd: {
18491
18491
  runReported: "Run completed and reported to NeetoPlaydash 🎉",
@@ -18757,7 +18757,10 @@ class MyReporter {
18757
18757
  while (!(this.attempts[id][`${retry}-${repeatEachIndex}`] ||
18758
18758
  this.testAttemptIds.includes(`${id}-${this.attempts[id][`${retry}-${repeatEachIndex}`]}`)))
18759
18759
  await waitUntilTimeout(100);
18760
- this.testResultCalls.push(attemptsApi.update(this.ciBuildId, id, this.attempts[id][`${retry}-${repeatEachIndex}`], testResult));
18760
+ const reportToNeetoPlaydash = attemptsApi.update(this.ciBuildId, id, this.attempts[id][`${retry}-${repeatEachIndex}`], testResult);
18761
+ this.testResultCalls.push(reportToNeetoPlaydash);
18762
+ await reportToNeetoPlaydash;
18763
+ consoleLogFormatted.invertBackground(MESSAGES.onTestEnd.reportedTest({ title, status, id }));
18761
18764
  }
18762
18765
  catch (error) {
18763
18766
  consoleLogFormatted.error(error.message);
@@ -18766,7 +18769,6 @@ class MyReporter {
18766
18769
  }
18767
18770
  finally {
18768
18771
  this.unreportedAttemptCount--;
18769
- consoleLogFormatted.invertBackground(MESSAGES.onTestEnd.reportedTest(title));
18770
18772
  }
18771
18773
  };
18772
18774
  this.onEnd = async ({ status, duration }) => {