[Core apps tests] Evince / Papers
I am not the Evince maintainer, but have definitely worked a lot on the codebase for close to a year now. Right now the OpenQA tests simply make sure that Evince opens. However, evince opens on the recent view page, and no PDF or any other part of the UI are actually tested. So thing that we could add (priority within bracktes):
- [HIGH] Opening real files. This is a requisite for any other test. While doing local development, I'm usually playing with two files:
- The document for my thesis thesis-attached2.pdf There's nothing special about it more that it covers many PDF features. If this is not desired, I could certainly compile a simpler document. But this currently covers:
- Different type of annotations
- An outline
- Has an attachment
- Has many pages, which surprisingly sometimes you want to test
- The layers document from poppler tests: https://gitlab.freedesktop.org/poppler/test/-/blob/master/unittestcases/NestedLayers.pdf NestedLayers.pdf. Would love to know that we don't break this.
- The document for my thesis thesis-attached2.pdf There's nothing special about it more that it covers many PDF features. If this is not desired, I could certainly compile a simpler document. But this currently covers:
- [NORMAL] Once a document is opened, we certainly want to click the top-left button, and open the sidebar.
- [VERY LOW]: It's probably not needed, but circling over the different sidebar panels (annotations, bookmarks, outline, attachments) wouldn't hurt. But this is not a big deal if missing
- [NORMAL] Scrolling around the document, and visualizing in different formats (continuous, non-continuous, dual page, etc.) There are way too many options, touching this part of the code is hard (I haven't dared yet), and can break in many different ways. So any additional tests would be useful.
- [LOW] Adding and opening annotations. Possibly saving the resulting PDF. This is one of those things which is terribly annoying to manually test, and we don't have any way to verify that we don't regress.
- [LOW] Doing some basic search. This integrates lots of things together, from the sidebar, to the view, to the search bar itself. There are lots of things that could be done as follow-up. Including moving around the document.
Also for completion, Evince opens many other types of documents that are not PDF. Including DVI, XPS, DJVU, TIFF and what not. I have no interest in those, but the maintainers want to keep them around. I'm not sure what's the future of those, but if whoever actually have the interest and the use-case for those files, it wouldn't hurt to have some tests, since I'm 100% sure that we don't