Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 081f160

Browse files
Winston LiuWinston Liu
Winston Liu
authored and
Winston Liu
committed
Fix flaky spec
1 parent cd1b21a commit 081f160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/tree-view-package-spec.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,13 +2872,13 @@ describe "TreeView", ->
28722872
callback = jasmine.createSpy('onEntryDeleted')
28732873
treeView.onEntryDeleted(callback)
28742874

2875-
waitForWorkspaceOpenEvent ->
2875+
waitsForPromise ->
28762876
atom.workspace.open(filePath2)
28772877

28782878
runs ->
28792879
openFilePaths = atom.workspace.getTextEditors().map((editor) -> editor.getPath())
28802880
expect(openFilePaths).toEqual([filePath2])
2881-
fileView2.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
2881+
treeView.selectEntry(fileView2)
28822882
treeView.focus()
28832883

28842884
spyOn(atom, 'confirm').andCallFake (options, callback) -> callback(0)

0 commit comments

Comments
 (0)