Hi all,
this is Luca from DAC.
As the title suggests we aim to end-to-end test our application using Cypress.
We are developing a custom application based on Cumulocity Cockpit.
Each test should go through the following steps
- clean environment
- setup (e.g. create a dashboard, create a device, place a map in the dashboard)
- test (e.g. check if a marker is placed in the map)
The question is about step 1. During this step we would get rid of anything the previous tests have created like alarms, managed objects […] .
How can we implement this step?
We could obviously call a “drop table” like function or something slightly smarter before each test but we consider this a backup plan.
Does the platform offer something to adress this? Any more elegant idea?
Best
Luca