# noPlaywrightWaitForTimeout

Rule `biome/noPlaywrightWaitForTimeout`. Disallow using `page.waitForTimeout()`.

- Source: biome
- Technologies: Testing
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1927 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noPlaywrightWaitForTimeout` | no | no | group suspicious, since 2.4.2 | [docs](https://biomejs.dev/linter/rules/no-playwright-wait-for-timeout/) |

## Code examples

### Incorrect: the rule reports this

```js
await page.waitForTimeout(5000);
```

```js
await page.waitForTimeout(1000);
```

### Correct: the rule accepts this

```js
await page.waitForLoadState();
```

```js
await page.waitForURL('/home');
```

```js
await page.waitForFunction(() => window.innerWidth < 100);
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noPlaywrightWaitForTimeout": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noPlaywrightWaitForSelector](https://lintradar.dev/rules/biome/noPlaywrightWaitForSelector.md): Disallow using `page.waitForSelector()`.
- [biome/noProcessGlobal](https://lintradar.dev/rules/biome/noProcessGlobal.md): Disallow the use of `process` global.
- [biome/noPlaywrightWaitForNavigation](https://lintradar.dev/rules/biome/noPlaywrightWaitForNavigation.md): Disallow using `page.waitForNavigation()`.
- [biome/noPseudoElementInFunctionalPseudoClass](https://lintradar.dev/rules/biome/noPseudoElementInFunctionalPseudoClass.md): Disallow pseudo-elements inside `:is()`, `:where()`, `:not()` and `:has()`.
- [biome/noPlaywrightUselessAwait](https://lintradar.dev/rules/biome/noPlaywrightUselessAwait.md): Disallow unnecessary `await` for Playwright methods that don't return promises.
- [biome/noReactForwardRef](https://lintradar.dev/rules/biome/noReactForwardRef.md): Replaces usages of `forwardRef` with passing `ref` as a prop.

---

Web page: https://lintradar.dev/rules/biome/noPlaywrightWaitForTimeout. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
