style/noPlaywrightWaitForSelector
style · since 2.4.2
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noPlaywrightWaitForSelector": "error"
}
}
}
}await page.waitForSelector('.submit-button');await page.waitForSelector('#dialog', { state: 'visible' });
await page.click('#dialog .button');await page.locator('.submit-button').click();await expect(page.locator('#dialog')).toBeVisible();const button = page.getByRole('button', { name: 'Submit' });
await button.click();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.
style/noPlaywrightWaitForSelector
style · since 2.4.2
{
"linter": {
"rules": {
"style": {
"noPlaywrightWaitForSelector": "error"
}
}
}
}Disallow unnecessary await for Playwright methods that don't return promises.
Disallow pseudo-elements inside :is(), :where(), :not() and :has().