Skip to content

Commit

Permalink
Add eslint warning about use of waitForTimeout to playwright eslint (W…
Browse files Browse the repository at this point in the history
…ordPress#40802)

Co-authored-by: Glen Davies <[email protected]>
  • Loading branch information
glendaviesnz and Glen Davies authored May 5, 2022
1 parent 1a391a4 commit ff6d0fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
],
},
},
Expand Down

0 comments on commit ff6d0fc

Please sign in to comment.