test()

in src/rules/onclick-uses-role.js [16:23]


    test(tagName, props) {
        const hidden = hiddenFromAT(props);
        const interactive = isInteractive(tagName, props);
        const onClick = listensTo(props, 'onClick');
        const role = 'role' in props;

        return hidden || interactive || !onClick || role;
    }