track parent step for attachments.push

This commit is contained in:
Simon Knott 2024-10-22 13:34:45 +02:00
parent d34af73754
commit a4eb0b340c
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -193,7 +193,7 @@ export class TestInfoImpl implements TestInfo {
this._attachmentsPush = this.attachments.push.bind(this.attachments); this._attachmentsPush = this.attachments.push.bind(this.attachments);
this.attachments.push = (...attachments: TestInfo['attachments']) => { this.attachments.push = (...attachments: TestInfo['attachments']) => {
for (const a of attachments) for (const a of attachments)
this._attach(a, undefined); this._attach(a, this._parentStep()?.stepId);
return this.attachments.length; return this.attachments.length;
}; };