Skip to content

no-node-access false-positive warning on object property with select name #1032

Open
@AlexKrupko

Description

@AlexKrupko

Have you read the Troubleshooting section?

Yes

Plugin version

v7.5.3

ESLint version

v9.29.0

Node.js version

v23.7.0

Bug description

After upgrading to version 7.5.3, the no-node-access warning appears on object property with select name

Steps to reproduce

const ui = {
    select: selector.byRole('combobox', {name: 'Test label'}),
};

test('...', () => {
    // ......
    const select = ui.select.get();
    expect(select).toBeVisible();
    expect(select).toHaveClass(selectClasses.select);
});

Both ui.select.get() and selectClasses.select are warned.

Error output/screenshots

No response

ESLint configuration

--

Rule(s) affected

no-node-access

Anything else?

No response

Do you want to submit a pull request to fix this bug?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagePending to be triaged by a maintainer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions