Please refer to the README files in these demos for further guidance.
A simple way to make a yFiles App testable is making the
GraphComponent available to the testing framework. In this app, this is
achieved by setting the instantiated GraphComponent as a property of the
Window object.