Tor Lillqvist
It is useful to check that basic functionality in CODA-W is not broken accidentally by commits to other parts of the code. We have lots of existing tests for COOL functionality in general that use Cypress. That technology is not usable for testing CODA, as its JavaScript part does not run in a browser, but in a WebView2. The functionality that needs to be tested for CODA is that which does not exist as such in COOL. One example is the so-called Backstage, the view that opens from the File menu, where you can for instance choose a document from the list of recent documents to edit, or invoke the Save As functionality.
This testing is for now in a separate C# program that uses the Selenium WebDriver API. The program is windows/coda/WebDriverThing/Program.cs and is built as a separate Visual Studio project. It starts the CODA-W executable (that is assumed to have been built in the same tree), has it open an empty temporary document, adds some text and an image, closes it, verifies that the saved document has the expected contents, and then cleans up. So far nothing complicated.
