       expectPreviewInSplitPane()
 
       runs ->
-        [editorPane] = atom.workspace.getPanes()
+        [editorPane] = getCenter().getPanes()
         expect(editorPane.getItems()).toHaveLength 1
         expect(editorPane.isActive()).toBe true
 

    waitsFor -> getCenter().getPanes().length is 2

    waitsFor "markdown preview to be created", ->
      preview = atom.workspace.getPanes()[1].getActiveItem()

    runs ->
      expect(preview).toBeInstanceOf(MarkdownPreviewView)

      expectPreviewInSplitPane()

    it "saves the HTML when it is triggered and the editor has focus", ->
      [editorPane, previewPane] = getCenter().getPanes()
      editorPane.activate()

      outputPath = temp.path(suffix: '.html')
