Closed rafiazman closed 4 weeks ago
Playwright assertions (https://playwright.dev/docs/test-assertions) are split into auto-retrying assertions and non-retrying assertions.
A new rule can be created perhaps with the name no-useless-await-expect that would disallow unnecessary awaits for Playwright expects.
no-useless-await-expect
Example of incorrect code:
await expect(true).toBeTruthy()
Example of correct code:
expect(true).toBeTruthy()
+1 for this rule.
:tada: This issue has been resolved in version 1.8.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks for the effort! 🍻
Playwright assertions (https://playwright.dev/docs/test-assertions) are split into auto-retrying assertions and non-retrying assertions.
A new rule can be created perhaps with the name
no-useless-await-expect
that would disallow unnecessary awaits for Playwright expects.Example of incorrect code:
Example of correct code: