Hi,
In short, yes, you could potentially use the ui.test module to write your automation tests. Adobe provides several flavors of common test automation frameworks such as Cypress and Selenium. It's up to you to decide which one you prefer to use based on your unique situation. The advantage of having tests within this module is that they will be triggered during a regular deployment if you are using AMS (Adobe Managed Services).
To check your test locally, it will vary on which technology you choose, for example, for Cypress, you could use the following command:
- Build the Docker UI test image with the below command
mvn clean package -Pui-tests-docker-build
- Run the test
mvn verify -Pui-tests-docker-execution -DAEM_AUTHOR_URL=https://author.my-deployment.com -DAEM_AUTHOR_USERNAME=<PASS> -DAEM_AUTHOR_PASSWORD=<PASS>
Please check the official documentation that will solve all of your doubts about how to install and use them: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
Hope this helps.
Esteban Bustamante