atom/tree-view

Flaky test: when the tree-view is destroyed it can correctly re-create the tree-view

Closed this issue · 0 comments

Expected '<div class="tool-panel tree-view" tabindex="-1"><ol class="tree-view-root full-menu list-tree has-collapsable-children focusable-panel" style=""><li is="tree-view-directory" class="directory entry list-nested-item project-root status-added expanded selected"><div class="header list-item project-root-header"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1" data-name="root-dir1" title="root-dir1">root-dir1</span></div><ol class="entries list-tree"><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\dir1" data-name="dir1" title="dir1">dir1</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\dir2" data-name="dir2" title="dir2">dir2</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\nested" data-name="nested" title="nested">nested</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="tree-view.js" data-name="tree-view.js" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\tree-view.js">tree-view.js</span></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="tree-view.txt" data-name="tree-view.txt" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\tree-view.txt">tree-view.txt</span></li></ol></li><li is="tree-view-directory" class="directory entry list-nested-item project-root status-added expanded"><div class="header list-item project-root-header"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir2" data-name="root-dir2" title="root-dir2">root-dir2</span></div><ol class="entries list-tree"><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir2\dir3" data-name="dir3" title="dir3">dir3</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="another-file.txt" data-name="another-file.txt" data-path="C:\projects\tree-view\spec\fixtures\root-dir2\another-file.txt">another-file.txt</span></li></ol></li></ol></div>' to be '<div class="tool-panel tree-view" tabindex="-1"><ol class="tree-view-root full-menu list-tree has-collapsable-children focusable-panel" style=""><li is="tree-view-directory" class="directory entry list-nested-item project-root expanded selected status-added"><div class="header list-item project-root-header"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1" data-name="root-dir1" title="root-dir1">root-dir1</span></div><ol class="entries list-tree"><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\dir1" data-name="dir1" title="dir1">dir1</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\dir2" data-name="dir2" title="dir2">dir2</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\nested" data-name="nested" title="nested">nested</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="tree-view.js" data-name="tree-view.js" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\tree-view.js">tree-view.js</span></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="tree-view.txt" data-name="tree-view.txt" data-path="C:\projects\tree-view\spec\fixtures\root-dir1\tree-view.txt">tree-view.txt</span></li></ol></li><li is="tree-view-directory" class="directory entry list-nested-item project-root expanded status-added"><div class="header list-item project-root-header"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir2" data-name="root-dir2" title="root-dir2">root-dir2</span></div><ol class="entries list-tree"><li is="tree-view-directory" class="directory entry list-nested-item collapsed" draggable="true"><div class="header list-item"><span class="name icon icon-file-directory" data-path="C:\projects\tree-view\spec\fixtures\root-dir2\dir3" data-name="dir3" title="dir3">dir3</span></div><ol class="entries list-tree"></ol></li><li is="tree-view-file" draggable="true" class="file entry list-item"><span class="name icon icon-file-text" title="another-file.txt" data-name="another-file.txt" data-path="C:\projects\tree-view\spec\fixtures\root-dir2\another-file.txt">another-file.txt</span></li></ol></li></ol></div>'

Because that is completely unreadable, here is an online diff: https://www.diffchecker.com/PTNN47lh. A similar failure is expanded selected being in the correct order for both, but status-added missing for one of them.

Appveyor only.