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): support custom workspaceRoot for angular CT #15485

Conversation

barbados-clemens
Copy link
Contributor

@barbados-clemens barbados-clemens commented Mar 6, 2023

Current Behavior

Unable to read root level files from the angular CT (i.e. tailwind configs in the workspaceRoot)

Expected Behavior

Nx preset passes the workspaceRoot to cypress to correct configure angular webpack

This fix requires a PR to cypress to be released.
cypress-io/cypress#26030

And nx should handle both code paths so if there is a non supported cypress version things keep working as they were before with an 'offset' but when a version of cypress that uses the custom workspaceRoot then the offsets aren't needed

Related Issue(s)

Fixes #12113

TODO:

  • handle code paths when a custom workspaceRoot isn't provided?
  • add e2e tests

@vercel
Copy link

vercel bot commented Mar 6, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Apr 11, 2023 5:35pm

@barbados-clemens barbados-clemens force-pushed the fix/use-custom-workspace-root-angular-ct branch 5 times, most recently from 3952efc to e639839 Compare April 11, 2023 16:01
@barbados-clemens barbados-clemens marked this pull request as ready for review April 11, 2023 16:34
@barbados-clemens barbados-clemens force-pushed the fix/use-custom-workspace-root-angular-ct branch from e639839 to 95dc7bd Compare April 11, 2023 17:35
@barbados-clemens barbados-clemens enabled auto-merge (squash) April 12, 2023 20:24
@barbados-clemens barbados-clemens merged commit 26fbd1d into nrwl:master Apr 14, 2023
@github-actions
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 Apr 20, 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.

Angular Cypress Component Testing not applying style correctly
3 participants