Yeah, this can be a bit tricky with all the `runs` and `waitsFor...`... another option would be to use your previous `getEditor` method inside the tests to resolve the `editor` variable, and then pass it to the helper methods.

What do you think? Could you give that a try? Otherwise, we can leave this as is.