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

feat: update @cypress/schematic to use proper e2e config for 10.0.0 #19827

Merged
merged 9 commits into from
Jan 28, 2022

Conversation

admah
Copy link
Contributor

@admah admah commented Jan 21, 2022

This PR updates the cypress-schematic package to:

  • properly scaffold files with new config patterns when running ng-add schematic
  • create .cy.ts files when generating new e2e specs

CT configuration will have to go in at a later date since Angular CT is still not fully fleshed out.

@linear
Copy link

linear bot commented Jan 21, 2022

DX-671

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 21, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Jan 21, 2022



Test summary

4354 0 54 0Flakiness 0


Run details

Project cypress
Status Passed
Commit e0a4303
Started Jan 28, 2022 3:58 PM
Ended Jan 28, 2022 4:10 PM
Duration 11:48 💡
OS Linux Debian - 10.10
Browser Firefox 93

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

'baseUrl': '<%= baseUrl%>',
'e2e': {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for explicitly specifying config options that are the default values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and removed them. However, this does bring up a good point about IA. I can find this on configuring CT(https://deploy-preview-4186--cypress-docs.netlify.app/guides/getting-started/component-framework-configuration), but I can't find an equivalent on E2E testing. The config reference with that info is kind of buried - https://deploy-preview-4186--cypress-docs.netlify.app/guides/references/configuration.

IMO referencing pieces of that doc more in the framework config pieces would help users - especially new users or those with limited experience configuring Cypress.

@admah admah requested a review from cowboy January 24, 2022 15:35
Copy link
Collaborator

@jordanpowell88 jordanpowell88 left a comment

Choose a reason for hiding this comment

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

Overall looks good. A few improvements to the tests and some questions around .cy vs .spec that need some clarification IMO

lmiller1990
lmiller1990 previously approved these changes Jan 25, 2022
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

Looks good, I don't see anything unusual here. I'm no angular expert, but code seems 💯

jordanpowell88
jordanpowell88 previously approved these changes Jan 25, 2022
Copy link
Collaborator

@jordanpowell88 jordanpowell88 left a comment

Choose a reason for hiding this comment

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

LGTM! Great job @admah!

@admah admah force-pushed the dx-671-update-scaffolded-files-to-represent-new branch from 658b998 to 9a600fb Compare January 25, 2022 18:57
jordanpowell88
jordanpowell88 previously approved these changes Jan 25, 2022
@lmiller1990 lmiller1990 self-requested a review January 26, 2022 00:14
lmiller1990
lmiller1990 previously approved these changes Jan 26, 2022
@jordanpowell88 jordanpowell88 dismissed stale reviews from lmiller1990 and themself via 1bed07a January 28, 2022 14:16
@CLAassistant
Copy link

CLAassistant commented Jan 28, 2022

CLA assistant check
All committers have signed the CLA.

@jordanpowell88 jordanpowell88 force-pushed the dx-671-update-scaffolded-files-to-represent-new branch from 1bed07a to da0e42b Compare January 28, 2022 14:35
@admah admah merged commit e629ae0 into 10.0-release Jan 28, 2022
@admah admah deleted the dx-671-update-scaffolded-files-to-represent-new branch January 28, 2022 16:07
tgriesser added a commit that referenced this pull request Jan 31, 2022
* 10.0-release: (25 commits)
  fix(unify): improve dev server config ergonomics (#19957)
  feat: add spec pattern modal (#19801)
  fix: Windows e2e project scaffolding issues (#19938)
  feat: update @cypress/schematic to use proper e2e config for 10.0.0 (#19827)
  fix: correctly migrate projects with custom integration folder (#19929)
  fix: component spec creation with spec pattern (#19862)
  fix: missed committing yarn.lock after merge conflict
  fix: correct reference branch / commitSha in performance-reporter (#19941)
  feat: update navbar UI per Figma (#19926)
  fix: seed examples files when no e2e directory is created (#19768)
  chore: remove windy lightBlue warning
  test: component test updates (#19925)
  feat: Focus browser from select browser screen and on dashboard login (#19842)
  test: Honeycomb system-test reporter (#19855)
  fix(deps): update dependency engine.io to v5.2.1 [security]
  feat: Retain fileName when working with aliased fixtures and files (#19820)
  Update release-process.md
  Update release-process.md
  Update release-process.md
  Update release-process.md
  ...
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.

None yet

6 participants