Skip to content

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

docs: fix typo in TestStep.category JSDoc (#37628)

Zacb3cf39324290
diff --git a/docs/src/test-reporter-api/class-teststep.md b/docs/src/test-reporter-api/class-teststep.md
index 84ba3abbda..4c312ad2a7 100644
--- a/docs/src/test-reporter-api/class-teststep.md
+++ b/docs/src/test-reporter-api/class-teststep.md
@@ -14,7 +14,7 @@ Step category to differentiate steps with different origin and verbosity. Built-
* `hook` for hooks initialization and teardown
* `pw:api` for Playwright API calls.
* `test.step` for test.step API calls.
-* `test.attach` for test attachmen calls.
+* `test.attach` for testInfo.attach API calls.
## property: TestStep.duration
diff --git a/packages/playwright/types/testReporter.d.ts b/packages/playwright/types/testReporter.d.ts
index d03244a1ec..3cadb05808 100644
--- a/packages/playwright/types/testReporter.d.ts
+++ b/packages/playwright/types/testReporter.d.ts
@@ -773,7 +773,7 @@ export interface TestStep {
* - `hook` for hooks initialization and teardown
* - `pw:api` for Playwright API calls.
* - `test.step` for test.step API calls.
- * - `test.attach` for test attachmen calls.
+ * - `test.attach` for testInfo.attach API calls.
*/
category: string;