`test.wait()` works by waiting for a call to `test.resume()`. So in this case if `onEditorReady` if called asynchronously your test will always fail. If something may or may not be asynchronous, I suggest you force the test to be asynchronous:

```js
var test = this;

function onEditorReady() { ... }

setTimeout(function () {
  test.makeEditorWithParaPlugin('<p> content<br></p>', function () {
    test.resume(onEditorReady);
  });
}, 0);

// it's best practice not to set a timeout and let the test environment decide
// which timeout to use because in CI some stuff may take longer
test.wait();
```