@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 +4 -1
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare class NeetoPlaywrightReporter implements Reporter {
|
|
|
16
16
|
heartbeatInterval: NodeJS.Timeout | null;
|
|
17
17
|
rootDir: string;
|
|
18
18
|
progressBars: (Bar | void)[];
|
|
19
|
+
startedAttempts: Set<string>;
|
|
19
20
|
constructor(options: ReporterOptionParams);
|
|
20
21
|
onBegin: (config: FullConfig, rootSuite: Suite) => Promise<void>;
|
|
21
22
|
onTestBegin: (test: TestCase, result: TestResult) => Promise<void>;
|
package/index.js
CHANGED
|
@@ -21521,6 +21521,7 @@ const onTestBegin = async (self, test, { retry }) => {
|
|
|
21521
21521
|
[historyId]: { [attemptIndex]: attemptId },
|
|
21522
21522
|
});
|
|
21523
21523
|
}
|
|
21524
|
+
self.startedAttempts.add(joinHyphenCase(historyId, attemptIndex));
|
|
21524
21525
|
}
|
|
21525
21526
|
catch (error) {
|
|
21526
21527
|
consoleLogFormatted.error(error.message);
|
|
@@ -22906,6 +22907,7 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
|
|
|
22906
22907
|
completedAt: completedAt.toString(),
|
|
22907
22908
|
errorSnippet: error && generateErrorReport(error),
|
|
22908
22909
|
};
|
|
22910
|
+
await waitUntilCondition(() => self.startedAttempts.has(joinHyphenCase(historyId, attemptIndex)));
|
|
22909
22911
|
consoleLogFormatted.underline(title);
|
|
22910
22912
|
const files = attachments
|
|
22911
22913
|
.map(({ name, path, body, contentType }) => {
|
|
@@ -22925,7 +22927,6 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
|
|
|
22925
22927
|
return uploadToS3(files[index].file, directUpload, `${title} - ${(_b = files[index]) === null || _b === void 0 ? void 0 : _b.name}`);
|
|
22926
22928
|
}));
|
|
22927
22929
|
self.progressBars.push(...bars);
|
|
22928
|
-
await waitUntilCondition(() => self.attempts[historyId][attemptIndex]);
|
|
22929
22930
|
const reportToNeetoPlaydash = attemptsApi.update(ciBuildId, historyId, self.attempts[historyId][attemptIndex], testResult);
|
|
22930
22931
|
self.testResultCalls.push(reportToNeetoPlaydash);
|
|
22931
22932
|
await reportToNeetoPlaydash;
|
|
@@ -22938,6 +22939,7 @@ const onTestEnd = async (self, testCase, { status, duration, errors, error, retr
|
|
|
22938
22939
|
}
|
|
22939
22940
|
finally {
|
|
22940
22941
|
self.unreportedAttemptCount--;
|
|
22942
|
+
self.startedAttempts.delete(joinHyphenCase(historyId, attemptIndex));
|
|
22941
22943
|
}
|
|
22942
22944
|
};
|
|
22943
22945
|
|
|
@@ -23006,6 +23008,7 @@ class NeetoPlaywrightReporter {
|
|
|
23006
23008
|
this.rootDir = "";
|
|
23007
23009
|
this.currentShard = 0;
|
|
23008
23010
|
this.progressBars = [];
|
|
23011
|
+
this.startedAttempts = new Set();
|
|
23009
23012
|
initialize(this, options);
|
|
23010
23013
|
}
|
|
23011
23014
|
}
|