Pomax / custom-file-tree

An HTML <file-tree> custom element
11 stars 0 forks source link

Add testing #7

Closed Pomax closed 2 months ago

Pomax commented 3 months ago

As a browser element, this needs some integration testing, so probably playwright (because Selenium is too stuck in the past, and who wants to deal with webdriver nonsense?)

Pomax commented 3 months ago

File tree behaviour

NOTE: Look out for bugs relating to syncing: there were a few places where the filename was hardcoded or used from initial scoped rather than looking up the current value, which leads to errors when a file gets renamed.

File events

filetree:file:create

filetree:file:rename

filetree:file:upload

filetree:file:move

filetree:file:delete

Dir events

filetree:dir:create

filetree:dir:rename

dir related part of filetree:file:upload

filetree:dir:move

filetree:dir:delete

Pomax commented 2 months ago

working on this over in the rewrite branch

Pomax commented 2 months ago

24 tests added.