suspicious/noPlaywrightWaitForNavigation
suspicious · since 2.4.2
No autofix
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightWaitForNavigation": "error"
}
}
}
}await page.waitForNavigation();await page.click('button');
await page.waitForNavigation({ waitUntil: 'networkidle' });await page.waitForURL('/home');await page.waitForLoadState('networkidle');await page.goto('/home');Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noPlaywrightWaitForNavigation
suspicious · since 2.4.2
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightWaitForNavigation": "error"
}
}
}
}Disallow unnecessary await for Playwright methods that don't return promises.
Disallow selecting Playwright elements by position with first(), last(), and nth().