Some Playwright methods are frequently, yet incorrectly, awaited when the await expression has no effect.
Examples of incorrect code for this rule:
await page.locator('.my-element')
await page.getByRole('.my-element')
await expect(1).toBe(1)
await expect(true).toBeTruthy()
Examples of correct code for this rule:
page.locator('.my-element')
page.getByRole('.my-element')
await page.$('.my-element')
await page.goto('.my-element')
expect(1).toBe(1)
expect(true).toBeTruthy()
await expect(page.locator('.foo')).toBeVisible()
await expect(page.locator('.foo')).toHaveText('bar')