adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
538 stars 412 forks source link

Cypress tests not generated when using uiTestingFramework parameter #1127

Open bartoszWesolowski opened 11 months ago

bartoszWesolowski commented 11 months ago

Expected Behaviour

When uiTestingFramework is set to cypress then cypress tests should be generated.

Actual Behaviour

Archetype always generates ui.tests with wdio tests.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

When I try to generate project from latest archetype with uiTestingFramework set to cypress the ui.tests module does not contain cypress tests. Command I am trying:

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=43 \
 -D aemVersion=cloud \
 -D appTitle="AEM Cloud" \
 -D appId="aem-cloud" \
 -D groupId="com.aem" \
 -D uiTestingFramework="cypress" \
 -D singleCountry=n \
 -D includeExamples=y \
 -D includeErrorHandler=y \
 -D includeFormscommunications=y \
 -D includeFormsenrollment=y \

I also tried -D uiTestingFramework=cypress and running the command without uiTestingFramework parameter as cypress should be the default value according to README.md.

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

In the logs I can not see the uiTestingFramework parameter listed:

INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: aem-project-archetype:43
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.aem
[INFO] Parameter: artifactId, Value: aem-cloud
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: package, Value: com.aem
[INFO] Parameter: packageInPathFormat, Value: com/aem/
[INFO] Parameter: includeForms, Value: n
[INFO] Parameter: includeFormsenrollment, Value: y
[INFO] Parameter: country, Value: us
[INFO] Parameter: amp, Value: n
[INFO] Parameter: groupId, Value: com.aem
[INFO] Parameter: enableDynamicMedia, Value: n
[INFO] Parameter: language, Value: en
[INFO] Parameter: appTitle, Value: AEM Cloud Starter
[INFO] Parameter: enableSSR, Value: n
[INFO] Parameter: appId, Value: aem-cloud
[INFO] Parameter: artifactId, Value: aem-cloud
[INFO] Parameter: includeFormscommunications, Value: y
[INFO] Parameter: singleCountry, Value: n
[INFO] Parameter: includeErrorHandler, Value: y
[INFO] Parameter: datalayer, Value: y
[INFO] Parameter: precompiledScripts, Value: n
[INFO] Parameter: includeDispatcherConfig, Value: y
[INFO] Parameter: sdkFormsVersion, Value: latest
[INFO] Parameter: package, Value: com.aem
[INFO] Parameter: includeExamples, Value: y
[INFO] Parameter: commerceEndpoint, Value: https://hostname.com/graphql
[INFO] Parameter: includeFormsheadless, Value: n
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: aemVersion, Value: cloud
[INFO] Parameter: includeCommerce, Value: n
[INFO] Parameter: frontendModule, Value: general
[INFO] Parameter: sdkVersion, Value: latest