diff --git a/.eslintrc.js b/.eslintrc.js index 22d522b723b643..22c354394d00a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -258,6 +258,11 @@ module.exports = { message: '`$$` is discouraged, please use `locator` instead', }, + { + selector: + 'CallExpression[callee.object.name="page"][callee.property.name="waitForTimeout"]', + message: 'Prefer page.locator instead.', + }, ], }, },