Fix a failure in js-tests.
Review Request #12826 — Created Feb. 7, 2023 and submitted
The tests for the comment dialog were failing in Firefox due to a missed
spy. The problem is that the text editor was calling
jQuery-wrapped element when using plain text editors, but the spy was
looking for the element itself.
This change updates the
.$el.focus(). This makes things consistent between plain text areas
and codemirror versions, so the spy works in both cases.
Ran unit tests.