So I’ve been researching and trying to find the new way to handle
atom.workspaceView.getActiveView(), but I have been unsuccessful. Not necessarily in terms of finding the view itself, but how to use
find within that context.
Here’s the goal: For my package, https://atom.io/packages/tasks, I would like to set up the specs so that when simulating user actions, I am checking to see if certain tokens are set on items within the view. My previous test looked something like
expect(editorView.find('.marker').length).toBe 2 where editor view was the activeView. How can I handle this now that the getActiveView is deprecated? I’ve been constantly thwarted by the shadow dom of the editor!
I imagine this has been asked and answered, but I have yet to come across an answer that helps!