Are there any frameworks, examples or hints for testing embedded forms in Camunda Tasklist?
Hi Falko,
It’s rather complex to setup those tests.
would you run them in a distro or in development environment?
Ideally, in a distro, but if necessary for testing the dev env could
work, too.
I just tried to summarize all the steps needed… it’s too complex to be written here (it would require a example project).
Sry…
maybe @sebastian.stamm has an idea…
I can share some insights about how we are doing the Protractor Tests in the development setup.
- You would need to deploy the process with the form. We are doing this in our test-suite with a setup script. You can have a look at the test-helper, which consumes a setup JSON file in the before hook of the test.
- You need to start a process instance of the deployed process. You can also do that with the setup JSON
- Then, in the test, you need to navigate to the Tasklist, select the correct filter, etc. to access the task itself
- Finally, you can interact with the embedded form.
I think the Task Detail Spec File is the one where we get closest to what you want to do, although we only test the generic form there.
We have been toying with Cypress.io
With cypress you can run network tests, so you can easily start processes and check process status through the api.
https://docs.cypress.io/v1.0/docs/request
Tests can be run through CI or just locally. So if you are running on local dev or on a server somewhere, not much a setup difference
Sweet!
didn’t knew about cypress.io, thanks for sharing!