correctness/noPlaywrightMissingAwait
correctness · since 2.4.2
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noPlaywrightMissingAwait": "error"
}
}
}
}Enforce Playwright async APIs to be awaited or returned.
test('example', async ({ page }) => {
expect(page.getByRole('button')).toBeVisible();
});test('example', async ({ page }) => {
test.step('step', async () => {});
});test('example', async ({ page }) => {
await expect(page.getByRole('button')).toBeVisible();
});test('example', async ({ page }) => {
await test.step('step', async () => {});
});test('example', async ({ page }) => {
return expect(page.getByRole('button')).toBeVisible();
});Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noPlaywrightMissingAwait
correctness · since 2.4.2
{
"linter": {
"rules": {
"correctness": {
"noPlaywrightMissingAwait": "error"
}
}
}
}Disallow using variables from outside the function passed to page.evaluate() and page.addInitScript().
Require var() when using a declared CSS custom property.
Disallow quickfix.biome in supported editor settings.
Disallow shorthand assign when variable appears on both sides.
Disallow useVisibleTask$() functions in Qwik components.