Skip to content

playwright/expect-expect should allow for the test.expect style #297

Closed
@MrJohz

Description

@MrJohz

For historical reasons, most of the Playwright tests in my codebase use test.expect(...) instead of directly importing expect from Playwright. I don't really know why, it might have something to do with the use of fixtures.

The playwright/expect-expect lint does not support the use of test.expect(...), and I need to either disable this lint, or rewrite all my tests to use the bare expect(...) version.

Is there a reason why this is the case, or is it just not very common that people use test.expect and I've run into a bug here? In that case, I'm happy to create a pull request to fix this.

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