This commit is contained in:
Simon Knott 2025-01-02 17:28:57 +01:00
parent f40782d9ac
commit 0fcbabc9c4
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -516,7 +516,7 @@ class TeleTestStep implements reporterTypes.TestStep {
steps: reporterTypes.TestStep[] = []; steps: reporterTypes.TestStep[] = [];
error: reporterTypes.TestError | undefined; error: reporterTypes.TestError | undefined;
private result: TeleTestResult; private _result: TeleTestResult;
_endPayload?: JsonTestStepEnd; _endPayload?: JsonTestStepEnd;
private _startTime: number = 0; private _startTime: number = 0;
@ -527,7 +527,7 @@ class TeleTestStep implements reporterTypes.TestStep {
this.location = location; this.location = location;
this.parent = parentStep; this.parent = parentStep;
this._startTime = payload.startTime; this._startTime = payload.startTime;
this.result = result; this._result = result;
} }
titlePath() { titlePath() {
@ -544,7 +544,7 @@ class TeleTestStep implements reporterTypes.TestStep {
} }
get attachments() { get attachments() {
return this._endPayload?.attachments?.map(index => this.result.attachments[index]) ?? []; return this._endPayload?.attachments?.map(index => this._result.attachments[index]) ?? [];
} }
} }