Skip to content

Commit b47ae6c

Browse files
authored
docs: missing box: true in step (#37928)
1 parent 9b2fbec commit b47ae6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/test-api/class-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ function step(target: Function, context: ClassMethodDecoratorContext) {
16521652
const name = this.constructor.name + '.' + (context.name as string);
16531653
return test.step(name, async () => {
16541654
return await target.call(this, ...args);
1655-
});
1655+
}, { box: true });
16561656
};
16571657
}
16581658

packages/playwright/types/test.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6180,7 +6180,7 @@ export interface TestType<TestArgs extends {}, WorkerArgs extends {}> {
61806180
* const name = this.constructor.name + '.' + (context.name as string);
61816181
* return test.step(name, async () => {
61826182
* return await target.call(this, ...args);
6183-
* });
6183+
* }, { box: true });
61846184
* };
61856185
* }
61866186
*
@@ -6339,7 +6339,7 @@ export interface TestType<TestArgs extends {}, WorkerArgs extends {}> {
63396339
* const name = this.constructor.name + '.' + (context.name as string);
63406340
* return test.step(name, async () => {
63416341
* return await target.call(this, ...args);
6342-
* });
6342+
* }, { box: true });
63436343
* };
63446344
* }
63456345
*

0 commit comments

Comments
 (0)