AEM solution for skipped custom UI tests in Cloud Manager caused by incorrect Docker context archive packaging
If Cloud Manager skips Custom UI Testing even though your tests run locally, the generated UI test Docker context archive might be packaged with the required files inside a parent directory instead of at the archive root. Verifying the archive structure and updating the Maven assembly configuration restores test detection in Cloud Manager.
Description description
Environment
Adobe Experience Manager as a Cloud Service
Issue/Symptoms
This issue usually appears when Cloud Manager cannot detect the UI test opt-in files in the generated Docker context archive.
- The Custom UI Testing step shows a message similar to The UI tests have been skipped because no tests have been found in your source code repository.
- Your Playwright, Cypress, Selenium, or other supported UI tests run locally, but no UI test execution appears in Cloud Manager.
- The
testing.propertiesfile exists in the repository, but Cloud Manager still skips the tests. - You can confirm the issue by building the UI tests module and checking where
testing.propertiesis stored inside the generated*-ui-test-docker-context.tar.gzfile. Runtar -tvf target/*-ui-test-docker-context.tar.gz | grep testing.properties. If the result shows a path such assome-folder/testing.propertiesinstead of justtesting.properties, the archive is packaged incorrectly. - You can also confirm the configuration by checking that
testing.propertiesis stored next to thepom.xmlfile in the UI tests module and contains exactlyui-tests.version=1.
Resolution resolution
Try the following steps to solve the issue:
- Confirm that the pipeline is using the correct Git branch for the UI tests module. The pipeline should use the branch that contains the
ui.testsmodule andtesting.properties. Confirm this in the pipeline configuration and in the next pipeline execution summary. - Check that
testing.propertiesexists next to the UI tests modulepom.xmlfile and contains exactlyui-tests.version=1. You should see the file in the correct module with the required value. Confirm this directly in the repository. - Build the UI tests module locally so that the Docker context archive is generated. You should see a file ending in
-ui-test-docker-context.tar.gzin the moduletargetdirectory. Confirm that the generated archive uses theui-test-docker-contextclassifier. - Inspect the generated archive and check whether
testing.propertiesis stored at the archive root by runningtar -tvf target/*-ui-test-docker-context.tar.gz | grep testing.properties. You should see onlytesting.propertieswith no parent folder prefix. If the output shows a path such assome-folder/testing.properties, the archive is packaged incorrectly. Continue to the next step. - Update
assembly-ui-test-docker-context.xmlso the Docker context is packaged at the archive root. Make sure the assembly keeps<includeBaseDirectory>false</includeBaseDirectory>and includestesting.propertieswith the root-level files such asDockerfileandwait-for-grid.sh. You should see the required files stored at the top level of the archive instead of inside a wrapper directory. Confirm this by rebuilding the module and repeating the archive inspection untiltesting.propertiesappears at the root. - Commit the packaging changes, push them to the branch used by the pipeline, and run the pipeline again. The
Custom UI Testingstep should run instead of showing a skip message. Confirm this in the pipeline execution details and check that UI test logs are available. - If the tests are now detected but fail during execution, review the UI test logs from the pipeline run and correct the test or framework-specific errors. Cloud Manager should detect and run the test image successfully. Confirm this by checking that the pipeline shows an actual UI test execution rather than a skipped step.
If the following symptoms occur and the troubleshooting steps produce the following results, submit a ticket to Adobe Support: the archive shows testing.properties at the root, the pipeline is using the correct branch, and Cloud Manager still reports that no UI tests were found.
Include the archive listing, the assembly-ui-test-docker-context.xml file, the UI tests module pom.xml, and the pipeline execution URL when you contact support.