# noPlaywrightWaitForNavigation

Rule `biome/noPlaywrightWaitForNavigation`. Disallow using `page.waitForNavigation()`.

- 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: #1925 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

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

```js
await page.click('button');
await page.waitForNavigation({ waitUntil: 'networkidle' });
```

### Correct: the rule accepts this

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

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

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

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Related rules

- [biome/noPlaywrightUselessAwait](https://lintradar.dev/rules/biome/noPlaywrightUselessAwait.md): Disallow unnecessary `await` for Playwright methods that don't return promises.
- [biome/noPlaywrightWaitForSelector](https://lintradar.dev/rules/biome/noPlaywrightWaitForSelector.md): Disallow using `page.waitForSelector()`.
- [biome/noPlaywrightPagePause](https://lintradar.dev/rules/biome/noPlaywrightPagePause.md): Disallow using `page.pause()`.
- [biome/noPlaywrightWaitForTimeout](https://lintradar.dev/rules/biome/noPlaywrightWaitForTimeout.md): Disallow using `page.waitForTimeout()`.
- [biome/noPlaywrightNthMethods](https://lintradar.dev/rules/biome/noPlaywrightNthMethods.md): Disallow selecting Playwright elements by position with `first()`, `last()`, and `nth()`.
- [biome/noProcessGlobal](https://lintradar.dev/rules/biome/noProcessGlobal.md): Disallow the use of `process` global.

---

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