@bigbinary/neeto-playwright-reporter 1.3.3 → 1.3.4

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
@@ -18621,17 +18621,16 @@ class MyReporter {
18621
18621
  this.retryAttemptStartedAt = new Date();
18622
18622
  while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
18623
18623
  await waitUntilTimeout(100); // Poll every 100 milliseconds
18624
+ const attemptsPayload = {
18625
+ status: "running",
18626
+ started_at: new Date().toString(),
18627
+ shard: this.currentShard,
18628
+ };
18624
18629
  if (retry === 0) {
18625
- await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], {
18626
- status: "running",
18627
- started_at: new Date().toString(),
18628
- });
18630
+ await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], attemptsPayload);
18629
18631
  }
18630
18632
  else {
18631
- const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id, {
18632
- status: "running",
18633
- started_at: new Date().toString(),
18634
- });
18633
+ const { data: { history_id, attempt_id }, } = await attemptsApi.create(this.ciBuildId, id, attemptsPayload);
18635
18634
  this.attempts = {
18636
18635
  ...this.attempts,
18637
18636
  [history_id]: {