track parent step for attachments.push
This commit is contained in:
parent
d34af73754
commit
a4eb0b340c
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue