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): update the cypress plugin implementation #20314

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

FrozenPandaz
Copy link
Collaborator

@FrozenPandaz FrozenPandaz commented Nov 17, 2023

Current Behavior

The cypress targets are generated to use the @nx/cypress:cypress executor.

Expected Behavior

The cypress targets are generated to simply run a command. This will make it easier to understand and also ensure that the behavior is the same as running the cypress commands

Related Issue(s)

Fixes #

Copy link

vercel bot commented Nov 17, 2023

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 20, 2023 8:13pm

@FrozenPandaz FrozenPandaz force-pushed the cypress-updates branch 5 times, most recently from ea952fb to be6f376 Compare November 17, 2023 20:52
@FrozenPandaz FrozenPandaz marked this pull request as ready for review November 17, 2023 20:54
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner November 17, 2023 20:54
@@ -57,19 +63,27 @@ describe('@nx/cypress/plugin', () => {
"projectType": "application",
"targets": {
"e2e": {
"cache": true,
"executor": "@nx/cypress:cypress",
"cache": false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no cache?

targets[options.targetName] = {
...baseTargetConfig,
command: `cypress run --config-file ${relativeConfigPath} --e2e --env.devServerTarget ${devServerTargets?.default}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming from cypress config's env already, do we really need to pass it again via cli?

@FrozenPandaz FrozenPandaz force-pushed the cypress-updates branch 2 times, most recently from 65cd3ff to 9bd8dee Compare November 20, 2023 20:09
@FrozenPandaz FrozenPandaz merged commit a916794 into nrwl:master Nov 21, 2023
6 checks passed
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants