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

Commit b2fdd7c

Browse files
Winston LiuWinston Liu
Winston Liu
authored and
Winston Liu
committed
Turns out this spec is also flaky
1 parent 081f160 commit b2fdd7c

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
@@ -2925,13 +2925,13 @@ describe "TreeView", ->
29252925
filePath2Copy = path.join(dirPath2, 'test-file2.txt0')
29262926
fs.writeFileSync(filePath2Copy, "doesn't matter 2 copy")
29272927

2928-
waitForWorkspaceOpenEvent ->
2928+
waitsForPromise ->
29292929
atom.workspace.open(filePath2Copy)
29302930

29312931
runs ->
29322932
openFilePaths = atom.workspace.getTextEditors().map((editor) -> editor.getPath())
29332933
expect(openFilePaths).toEqual([filePath2Copy])
2934-
fileView2.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
2934+
treeView.selectEntry(fileView2)
29352935
treeView.focus()
29362936

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

0 commit comments

Comments
 (0)