Closed
Description
Originated by #331. I don't think no-node-access
should report DOM elements queried from document
since we can't detect properly if being used for a test because of Aggressive Reporting.
In the rule doc it says this case is invalid:
// If is not importing a testing-library package
document.getElementById('submit-btn').closest('button');
But we can't actually know this for the reason mentioned before.