Skip to content

Conversation

tgriesser
Copy link
Member

@tgriesser tgriesser commented Dec 8, 2021

Smaller changes split out from #18906, focused on testing improvements:

  • Simpler lifecycle management in Cypress E2E scripts
  • Store modeOptions (sourced from CLI flags) as a property on the data context
  • Create a single context for all tests, with the ability to reset them
  • Add a global getCtx / setCtx for simpler testing & access to the context in places we can't inject it
  • Fix some Failing e2e tests
  • Support passing flags in e2e test, with cy.openE2E('fixture-project-name', ['--browser', 'firefox'])
    • Run these flags through the CLI package for consistent formatting
  • Make yarn watch / yarn cypress:open work w/ new development scripts

Todo:

  • cy.scaffoldProject - for scaffolding in before, without cleaning up
  • cy.openProject('project-name')
    • Make it so it has to be "scaffolded" in order to mount
  • cy.initializeApp -> cy.startAppServer
  • Documentation for different commands, how to use cy.withCtx, general testing best practices

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 8, 2021

Thanks for taking the time to open a PR!

* 10.0-release: (53 commits)
  refactor: makeLegacyContext -> getCtx (#19308)
  fix: various Nav Bar fixes (#19283)
  build: add patch package as a dev dependency for fe-shared
  chore: hoist is - fun with cached dependencies
  build: hoist is hard
  build: better hoisting strategy
  chore: remove unused testing preferences (#19301)
  fix: remove windows and mac workflow from branch
  fix: show script errors when spec file fails to process (#19298)
  revert: remove change about node version 17
  feat: open config file in user's editor (#19276)
  feat(unify): scale the AUT (#19297)
  build: remove testing of desktop-gui assets
  build: run window & mac CI in this branch
  build: more fixes
  build: remove toycode mdi from launchpad
  rename patch because of dev dep
  build: fix  merge issue in packages generation
  chore: update sass for windows compatibility
  fix: Do not crash when a ill formed URL request is proxied (#19274)
  ...
@cypress
Copy link

cypress bot commented Dec 9, 2021



Test summary

18171 0 202 0Flakiness 1


Run details

Project cypress
Status Passed
Commit 5f4cec5
Started Dec 10, 2021 2:03 AM
Ended Dec 10, 2021 2:14 AM
Duration 11:51 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/commands/net_stubbing_spec.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"

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

@tgriesser tgriesser merged commit 806a31a into 10.0-release Dec 10, 2021
@tgriesser tgriesser deleted the 10.0-release-refactor-tests branch December 10, 2021 02:23
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.

1 participant