We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bddb06 commit 1a02040Copy full SHA for 1a02040
lib/codeceptjs/realtime-reporter.helper.js
@@ -238,7 +238,7 @@ class RealtimeReporterHelper extends Helper {
238
239
return {
240
id: step.id,
241
- testId: this.test.id,
+ testId: this.test && this.test.id || this.suite && this.suite.id,
242
at: Date.now() - testStartedAt,
243
startedAt: step.startTime,
244
duration: Date.now() - step.startTime,
@@ -294,7 +294,8 @@ class RealtimeReporterHelper extends Helper {
294
295
async _beforeSuite(suite) {
296
if (!this._isEnabled()) return;
297
- this.suite = suite;
+ this.suite = suite;
298
+ this.testStartedAt = Date.now();
299
300
wsEvents.rtr.suiteBefore(mapSuiteAndTest(Date.now(), this.suite, this.test));
301
}
0 commit comments