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

fix(testing): e2e config generators should prompt for missing serve data #29660

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jan 17, 2025

Current Behavior

When running the configuration generator from @nx/playwright and @nx/cypress for existing appliactions - they currently generate a config that is likely to be invalid becaue there is not enough information to correctly assume the port, target and baseUrl for the application.
This data is provided by the application generators that call the configuration generator - but that means that users running it manually must remember to pass the information via flags.

Expected Behavior

If the serve data is missing, prompt the user to input the correct information to ensure the config generation is as accurate as possible.

@Coly010 Coly010 requested a review from a team as a code owner January 17, 2025 11:22
@Coly010 Coly010 requested a review from jaysoo January 17, 2025 11:22
@Coly010 Coly010 self-assigned this Jan 17, 2025
Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 11:24am

Copy link

nx-cloud bot commented Jan 17, 2025

View your CI Pipeline Execution ↗ for commit d549af1.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 2m 48s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 21s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=bb03e... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation --no-dte ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-17 12:22:31 UTC

@Coly010 Coly010 merged commit bc0566f into master Jan 17, 2025
6 checks passed
@Coly010 Coly010 deleted the e2e/config-gen-prompts branch January 17, 2025 15:09
FrozenPandaz pushed a commit that referenced this pull request Jan 17, 2025
…ata (#29660)

## Current Behavior
When running the `configuration` generator from `@nx/playwright` and
`@nx/cypress` for existing appliactions - they currently generate a
config that is likely to be invalid becaue there is not enough
information to correctly assume the port, target and baseUrl for the
application.
This data is provided by the application generators that call the
`configuration` generator - but that means that users running it
manually must remember to pass the information via flags.

## Expected Behavior
If the serve data is missing, prompt the user to input the correct
information to ensure the config generation is as accurate as possible.

(cherry picked from commit bc0566f)
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

Successfully merging this pull request may close these issues.

2 participants