`editor.doesElementContainSelection`

I like all of these test names. Very readable and easy to understand the scope of what has and hasn't been tested.