Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress tests not generated when using uiTestingFramework parameter #1127

Open
bartoszWesolowski opened this issue Aug 25, 2023 · 0 comments

Comments

@bartoszWesolowski
Copy link

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

  • Mac OS 13.0, Apple M1 Max
  • Java version: 11.0.16.1
  • Apache Maven 3.8.6

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant