Skip to content

playwright fixtures unused-class-members #246

@vethman

Description

@vethman

What happened?

I have a playwright framework that uses classes that are loaded into a fixture. When I use the fixtures in a playwright test the methods that are being used in the test via the fixture are reported as dead code.

Reproduction

Follow this example of playwright:
https://playwright.dev/docs/auth#testing-multiple-roles-with-pom-fixtures

I have my classes in separate files.

In the end the methods of your POM classes will be reported as dead code

Expected behavior

I do not expect the methods to be reported as unused class members

Fallow version

2.58.0

Operating system

Windows

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions