We have configured openmrs-spa.org server for RefApp 3.x E2E tests. Cypress is clearing the resources such as js files, CSS, and images each time we run a test. Because of that, the tests take a time to get loaded. Most of our developers are having compared slow connections, the tests are getting timeout and fail after waiting for 2 minutes. Apart from that, it consumes a lot of data. Some workflows take nearly 30MBs to get loaded. Since we all have metered connections, developing a workflow is a bit expensive.
As I see, these would be possible options to resolve the problem:
Configuring Cypress to cache resources
Running tests against a local server that does not depend on the internet
Furthermore, I attempted to set up a local server, but it still loads resources from a CDN. Then I manually created an import map file, but it also did not work.
Is there any way to create an isolated local server? Or any alternatives to solve the problem?
I think this would be the better alternative to cut off costs related to using an online instance during development. @ibacher@bistenes@mksd@dkayiwa do we have an OpenMRS SDK 3.x set up wizard one can run to have a local instance of openmrs-spa.org? Or a documentation related to the ideal?
This would be an awesome approach to dive into however i remember @ibacher had shared some clues about it but am not seeming to find that resource, though it seems not yet out ready
I stopped working on this about two months ago, but I was making some progress. It would make things much better if we can manage to figure this out. I’m happy to answer questions and provide guidance, but I don’t have the bandwidth to help develop this right now.