The Playwright specs stayed in nextcloud/server when the viewer moved out. That was right for the move itself, but most of them are not really about the server.
Of the 47 specs, the ones that genuinely test integration should stay there: opening from the Files list, public link shares, the sidebar, and the browser history and URL behaviour. Those exercise wiring this repository cannot see, and they are the sanity check that the package a server ships actually works inside it.
The rest — navigation between files, odd file names, per-format media playback, error handling, the compare API, the editor action, the accessibility pass — are about the viewer itself and would run faster and closer to the code here.
That needs a browser test setup in this repository: a playground page mounting the viewer over some fixture files, and Playwright wired to it, roughly as nextcloud-image-editor does.
One thing to settle first, and the reason this is not a mechanical move: the viewer talks to WebDAV and to the previews endpoint, and a playground has neither. Either the fixtures are File nodes whose source is a plain URL served by the dev server, if the viewer copes with a node that is not DAV-backed, or the playground stubs those requests. The first would also give this repository a working demo page for the docs to link to.
The Playwright specs stayed in nextcloud/server when the viewer moved out. That was right for the move itself, but most of them are not really about the server.
Of the 47 specs, the ones that genuinely test integration should stay there: opening from the Files list, public link shares, the sidebar, and the browser history and URL behaviour. Those exercise wiring this repository cannot see, and they are the sanity check that the package a server ships actually works inside it.
The rest — navigation between files, odd file names, per-format media playback, error handling, the compare API, the editor action, the accessibility pass — are about the viewer itself and would run faster and closer to the code here.
That needs a browser test setup in this repository: a playground page mounting the viewer over some fixture files, and Playwright wired to it, roughly as nextcloud-image-editor does.
One thing to settle first, and the reason this is not a mechanical move: the viewer talks to WebDAV and to the previews endpoint, and a playground has neither. Either the fixtures are
Filenodes whose source is a plain URL served by the dev server, if the viewer copes with a node that is not DAV-backed, or the playground stubs those requests. The first would also give this repository a working demo page for the docs to link to.Filenode is enough to drive the viewer