test: Fix to account for changes in visualeditor

mw.libs.ve.isAvailable is no longer enough to detect whether the UI is initialised.

It only states whether it is available. User preferences may have disabled it.
Resort to class name instead.