Skip to content

Add rule to remove useless awaits used with expect #306

Closed
@rafiazman

Description

@rafiazman

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:

await expect(true).toBeTruthy()

Example of correct code:

expect(true).toBeTruthy()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions