Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: missing box: true in step (#37928)

Pavel Feldmanb47ae6c118fe
diff --git a/docs/src/test-api/class-test.md b/docs/src/test-api/class-test.md
index 977c9d83e5..990c49d873 100644
--- a/docs/src/test-api/class-test.md
+++ b/docs/src/test-api/class-test.md
@@ -1652,7 +1652,7 @@ function step(target: Function, context: ClassMethodDecoratorContext) {
const name = this.constructor.name + '.' + (context.name as string);
return test.step(name, async () => {
return await target.call(this, ...args);
- });
+ }, { box: true });
};
}
diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts
index 91c168cd73..f27851d423 100644
--- a/packages/playwright/types/test.d.ts
+++ b/packages/playwright/types/test.d.ts
@@ -6180,7 +6180,7 @@ export interface TestType<TestArgs extends {}, WorkerArgs extends {}> {
* const name = this.constructor.name + '.' + (context.name as string);
* return test.step(name, async () => {
* return await target.call(this, ...args);
- * });
+ * }, { box: true });
* };
* }
*
@@ -6339,7 +6339,7 @@ export interface TestType<TestArgs extends {}, WorkerArgs extends {}> {
* const name = this.constructor.name + '.' + (context.name as string);
* return test.step(name, async () => {
* return await target.call(this, ...args);
- * });
+ * }, { box: true });
* };
* }
*