@bigbinary/neeto-playwright-reporter 1.5.4 → 1.5.5

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
@@ -21541,6 +21541,7 @@ const onTestBegin = async (self, test, { retry }) => {
21541
21541
  [historyId]: { [attemptIndex]: attemptId },
21542
21542
  });
21543
21543
  }
21544
+ self.startedAttempts.add(joinHyphenCase(historyId, attemptIndex));
21544
21545
  }
21545
21546
  catch (error) {
21546
21547
  consoleLogFormatted.error(error.message);
@@ -22926,6 +22927,7 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
22926
22927
  completedAt: completedAt.toString(),
22927
22928
  errorSnippet: error && generateErrorReport(error),
22928
22929
  };
22930
+ await waitUntilCondition(() => self.startedAttempts.has(joinHyphenCase(historyId, attemptIndex)));
22929
22931
  consoleLogFormatted.underline(title);
22930
22932
  const files = attachments
22931
22933
  .map(({ name, path, body, contentType }) => {
@@ -22945,7 +22947,6 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
22945
22947
  return uploadToS3(files[index].file, directUpload, `${title} - ${(_b = files[index]) === null || _b === void 0 ? void 0 : _b.name}`);
22946
22948
  }));
22947
22949
  self.progressBars.push(...bars);
22948
- await waitUntilCondition(() => self.attempts[historyId][attemptIndex]);
22949
22950
  const reportToNeetoPlaydash = attemptsApi.update(ciBuildId, historyId, self.attempts[historyId][attemptIndex], testResult);
22950
22951
  self.testResultCalls.push(reportToNeetoPlaydash);
22951
22952
  await reportToNeetoPlaydash;
@@ -22958,6 +22959,7 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
22958
22959
  }
22959
22960
  finally {
22960
22961
  self.unreportedAttemptCount--;
22962
+ self.startedAttempts.delete(joinHyphenCase(historyId, attemptIndex));
22961
22963
  }
22962
22964
  };
22963
22965
 
@@ -23026,6 +23028,7 @@ class NeetoPlaywrightReporter {
23026
23028
  this.rootDir = "";
23027
23029
  this.currentShard = 0;
23028
23030
  this.progressBars = [];
23031
+ this.startedAttempts = new Set();
23029
23032
  initialize(this, options);
23030
23033
  }
23031
23034
  }