@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.cjs.js CHANGED
@@ -18504,7 +18504,7 @@ const MESSAGES = {
18504
18504
  startingTest: (titlePath) => `Starting ${titlePath}`,
18505
18505
  },
18506
18506
  onTestEnd: {
18507
- reportedTest: (title) => `Reported ${title} to NeetoPlaydash`,
18507
+ reportedTest: ({ title, status, id }) => `Reported ${title} with id: ${id} to NeetoPlaydash with status ${status}`,
18508
18508
  },
18509
18509
  onEnd: {
18510
18510
  runReported: "Run completed and reported to NeetoPlaydash 🎉",
@@ -18776,7 +18776,10 @@ class MyReporter {
18776
18776
  while (!(this.attempts[id][`${retry}-${repeatEachIndex}`] ||
18777
18777
  this.testAttemptIds.includes(`${id}-${this.attempts[id][`${retry}-${repeatEachIndex}`]}`)))
18778
18778
  await waitUntilTimeout(100);
18779
- this.testResultCalls.push(attemptsApi.update(this.ciBuildId, id, this.attempts[id][`${retry}-${repeatEachIndex}`], testResult));
18779
+ const reportToNeetoPlaydash = attemptsApi.update(this.ciBuildId, id, this.attempts[id][`${retry}-${repeatEachIndex}`], testResult);
18780
+ this.testResultCalls.push(reportToNeetoPlaydash);
18781
+ await reportToNeetoPlaydash;
18782
+ consoleLogFormatted.invertBackground(MESSAGES.onTestEnd.reportedTest({ title, status, id }));
18780
18783
  }
18781
18784
  catch (error) {
18782
18785
  consoleLogFormatted.error(error.message);
@@ -18785,7 +18788,6 @@ class MyReporter {
18785
18788
  }
18786
18789
  finally {
18787
18790
  this.unreportedAttemptCount--;
18788
- consoleLogFormatted.invertBackground(MESSAGES.onTestEnd.reportedTest(title));
18789
18791
  }
18790
18792
  };
18791
18793
  this.onEnd = async ({ status, duration }) => {