Assert mini editor focus in a way that’s compatible with the shadow DOM

This change makes the specs compatible with both pre- and
post-shadow-DOM text editors.
Prepare 0.59.0 release