Skip to content

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

Fix timeout documentation (#18925)

ffluk3e2624979e682
diff --git a/docs/src/test-timeouts-js.md b/docs/src/test-timeouts-js.md
index 0e389a947e..7ab9ebc4bf 100644
--- a/docs/src/test-timeouts-js.md
+++ b/docs/src/test-timeouts-js.md
@@ -87,7 +87,7 @@ test('very slow test', async ({ page }) => {
API reference: [`method: Test.setTimeout`] and [`method: Test.slow#1`].
-### Change timeout from a slow hook
+### Change timeout from a `beforeEach` hook
```js tab=js-js
const { test, expect } = require('@playwright/test');