What happened?
#246 was fixed, but I am using a style of fixture with nested properties. That is not working for unused class members
Reproduction
Follow this example of playwright:
https://playwright.dev/docs/auth#testing-multiple-roles-with-pom-fixtures
I have my classes in separate files.
My fixture has nested objects. So instead of
// Declare the types of your fixtures.
type MyFixtures = {
adminPage: AdminPage;
userPage: UserPage;
};
I have
// Declare the types of your fixtures.
type MyFixtures = {
pages: {
adminPage: AdminPage;
userPage: UserPage;
}
};
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.63.0
Operating system
Windows
Configuration
What happened?
#246 was fixed, but I am using a style of fixture with nested properties. That is not working for unused class members
Reproduction
Follow this example of playwright:
https://playwright.dev/docs/auth#testing-multiple-roles-with-pom-fixtures
I have my classes in separate files.
My fixture has nested objects. So instead of
I have
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.63.0
Operating system
Windows
Configuration