Open
Description
For the locator methods, the check is only against the method name and not the receiver object type. Therefore, in the following example the await
before a.locator();
is marked as useless:
class A {
locator(): Promise<void>;
}
async function () {
const a = new A;
await a.locator();
}
It seems the relevant logic is here, and I wonder if there could be an additional check on the receiver object for locator methods, like the one for page methods.
Metadata
Assignees
Labels
No labels