 
       waitsForPromise ->
         atom.packages.activatePackage("welcome")
-      waits(openFileTimeout)
+      waits(200)
 
     it "doesn't show the welcome buffer", ->
       expect(atom.workspace.getPaneItems().length).toBe(0)

describe "Welcome", ->
  openFileTimeout = 200

  beforeEach ->
    waitsForPromise ->
      atom.packages.activatePackage("welcome")
    waits(openFileTimeout)

  describe "when activated for the first time", ->
    it "shows the welcome buffer", ->
      editor = atom.workspace.getPaneItems()[0]
      expect(editor.getText()).toMatch(/Welcome to Atom/)

  describe "when activated again", ->

      atom.workspace.getActivePane().destroy()

      atom.commands.dispatch(workspaceElement, 'welcome:show-welcome-buffer')

      editor = null
      waitsFor ->
        editor = atom.workspace.getActiveTextEditor()

      runs ->
        expect(editor.getText()).toMatch(/Welcome to Atom/)
