Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 368 Bytes

no-wait-for-selector.md

File metadata and controls

17 lines (12 loc) · 368 Bytes

Disallow usage of page.waitForSelector (no-wait-for-selector)

Rule Details

Example of incorrect code for this rule:

await page.waitForSelector('#foo')

Examples of correct code for this rule:

await page.waitForLoadState()
await page.waitForURL('/home')
await page.waitForFunction(() => window.innerWidth < 100)